Is it normal that if you call event.stopExecution() in a Before Form event, it throws a java.lang.NullPointerException but doing something like form.abort("This event is done") it does not throw a null pointer exception ?
Is this the way its supposed to be ?
event.stopExecution() in Before Form event
Moderators: Jon, Steve, Ian, Dave
-
- Ebase User
- Posts: 649
- Joined: Mon Dec 09, 2013 6:37 pm
-
- Moderator
- Posts: 1342
- Joined: Wed Sep 12, 2007 12:49 pm
Re: event.stopExecution() in Before Form event
No it's a bug, stopExecution() should just (silently) stop execution of the event. abort() should abort execution of the form and show an error to the user.
0 x
-
- Ebase User
- Posts: 649
- Joined: Mon Dec 09, 2013 6:37 pm
Re: event.stopExecution() in Before Form event
Ok thanks for clearing that up.
I've replaced event.stopExecution with form.abort for now to prevent my server logs from being filled with pointless null pointer exceptions.
I've replaced event.stopExecution with form.abort for now to prevent my server logs from being filled with pointless null pointer exceptions.
0 x
Who is online
Users browsing this forum: No registered users and 9 guests