RequestHandler listeners are called with null handler
-----------------------------------------------------
Key: WICKET-3646
URL: https://issues.apache.org/jira/browse/WICKET-3646
Project: Wicket
Issue Type: Bug
Components: wicket-core
Affects Versions: 1.5-RC3
Reporter: Martijn Dashorst
Priority: Minor
When running RequestCycleListeners with WicketTester, they get called with null
for the requesthandler in onScheduleHandler(). This is an artifact of the
wicket tester requestcycle, which I think should normally not occur in Wicket
processing. The parameters are not marked as optional, so it is IMO safe to
assume that handler should never be null.
I propose to modify scheduleRequestHandlerAfterCurrent(IRequestHandler handler)
to not invoke the listeners when the handler is null, but only to clear the
current scheduled handler.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira