tapestry-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zack1403 <zack.mann...@gmail.com>
Subject Re: [T5] Palette NPE
Date Thu, 04 Dec 2008 07:02:27 GMT

Happening again using GenericSelectModel for model and encoder.  Anyone have
any clue what I might be doing wrong? I discarding persistent field changes
after a certain action so I have a fresh start when it happens each time.  I
seems completely random why this is showing up.

Zack


zack1403 wrote:
> 
> Unfortunately I was passing it a List :(  Hasn't happened since I stared
> using GenericSelectModel for both model and encoder but thats not to say
> it wont.  Thanks anyways!
> 
> Zack
> 
> 
> James Hillyerd wrote:
>> 
>> Probably not related to your problem, but I was seeing an NPE from the
>> exact
>> same line of code when passing the palette a Set (instead of a List).
>> 
>> -james
>> 
>> On Wed, Dec 3, 2008 at 11:27 AM, zack1403 <zack.manning@gmail.com> wrote:
>> 
>>>
>>> Ive overridden both equals and hashCode (neither were overridden before)
>>> and
>>> have been waiting for the issue to reproduce.  It is very intermittent
>>> and
>>> a
>>> simple f5 makes it go away which is frustrating.  I also am trying using
>>> GenericSelectModel as the encoder and model which might make the issue
>>> go
>>> away.  Ill follow up if that fixes it.  Thanks!
>>>
>>> Zack
>>>
>>>
>>> Nicolas Charles wrote:
>>> >
>>> > I just had this issue; it was because the object overrided the
>>> "equals"
>>> > method, but not "hashCode", hence the selected object couldn't be
>>> found
>>> > in the selected set.
>>> >
>>> > Nick
>>> >
>>> >
>>>
>>> --
>>> View this message in context:
>>> http://www.nabble.com/-T5--Palette-NPE-tp20652729p20819782.html
>>> Sent from the Tapestry - User mailing list archive at Nabble.com.
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>> For additional commands, e-mail: users-help@tapestry.apache.org
>>>
>>>
>> 
>> 
>> -- 
>> James A. Hillyerd <james@hillyerd.com>
>> 
>> 
> 
> 

-- 
View this message in context: http://www.nabble.com/-T5--Palette-NPE-tp20652729p20828345.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Mime
View raw message