Well, if the person is null I don't get a NPE (to check, I took a wicket
page, added an attribute A to it, displayed A.B with a Label +
PropertyModel, but never setted the attribute A => I never got the NPE)

What I meant in my first post, is since I don't get a NPE in that case, I
was thinking that Wicket shouldn't throw a IOOBE in the case of an
inexisting position in my List: according to me Wicket should handle it.
Am i wrong ?


Mathias P.W Nilsson wrote:
> 
> The person.name check getPerson().setName() , getName(). If the person is
> null you will get a nullpointer.
> 
> If you do get( 0 ) on a list and the null doens't exists then you will get
> a IndexOutOfBoundException. Just try with a normal list and an object.
> 
> The list is probably initialized like with hibernate you will get an empty
> list. But doens't contains any elements.
> 

-- 
View this message in context: 
http://www.nabble.com/IndexOutOfBoundException-and-PropertyModel-tp17315359p17316664.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to