When the RemarkForm is instancied, addButtons() is called. 
At this point the modalWindow is null.
So the modalWindow argument given to the AddRemarkButton constructor is null. 

You should modify the RemarkForm constructor to something like 
public RemarkForm(String id, ModalWindow modalWindow) {

François





> Le 22 févr. 2017 à 14:19, Manfred Bergmann <m...@software-by-mabe.com> a 
> écrit :
> 
> It it's that line, than only the modalWindow instance variable can be null.
> Can you confirm that by either adding a log line or debug into there.
> 
> If it is indeed null something in the surrounding of the classes you show
> makes it null, or cleans it up. Some concurrency going on maybe?
> 
> 
> Manfred
> 
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/NullPointerException-on-submitting-a-form-in-a-modal-window-tp4677161p4677167.html
> Sent from the Users forum mailing list archive at Nabble.com.
> 
> ---------------------------------------------------------------------
> 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

Reply via email to