Haven't run the code but my guess is that the idValue returns a null instead of "0". Take a look at AbstractSingleSelectChoice.convertChoiceIdToChoice(String) line 281. (Wicket 6.15.0) "if(renderer.getIdValue(choice, index).equals(id)" This would trigger a NPE if a null is returned, which would be the case with your "nullItem".
Cheers, Marco On Sunday 25 May 2014 21:06:41 Lucio Crusca wrote: > I'm pretty sure it's my fault, but I can't spot it. I'm trying to use a > DropDownChoice with custom renderer and a PropertyModel, without a Form. > > I get a NullPointerException in AbstractSingleSelectChoice, here is the > quickstart: > > http://www.sulweb.org/download/sparsi/quickstart.zip > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org