On Wed, Apr 4, 2012 at 9:37 AM, Michal Wegrzyn <[email protected]> wrote: > Look at VoteEditForm constructor. > > Form form = new Form("form",new CompoundPropertyModel(aVote)) {...} > > Object aVote is null.
It is not null. It is misleading because there is a member field and constructor parameter with the same name. CompoundPropertyModel also throws an exception when null is passed so it is immediately clear. But the pasted code is hard to read with all these comments and indents... > > Best regards, > Michal Wegrzyn > >> -----Original Message----- >> From: SudeepShakya [mailto:[email protected]] >> Sent: Wednesday, April 04, 2012 8:20 >> To: [email protected] >> Subject: Re: Debugging error >> >> I have attached the files. >> http://apache-wicket.1842946.n4.nabble.com/file/n4531058/Votes.java >> Votes.java >> http://apache- >> wicket.1842946.n4.nabble.com/file/n4531058/VoteEditForm.java >> VoteEditForm.java >> http://apache- >> wicket.1842946.n4.nabble.com/file/n4531058/VoteCollection.java >> VoteCollection.java >> http://apache- >> wicket.1842946.n4.nabble.com/file/n4531058/VoteCollectionJDBC.java >> VoteCollectionJDBC.java</nabble<nabble_a >> href="VoteDisplayPage.java">VoteDisplayPage.java _a> >> >> -- >> View this message in context: http://apache- >> wicket.1842946.n4.nabble.com/Debugging-error-tp4530892p4531058.html >> Sent from the Users forum mailing list archive at Nabble.com. >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [email protected] >> For additional commands, e-mail: [email protected] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
