[ 
https://issues.apache.org/jira/browse/WICKET-6104?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Martin Grigorov resolved WICKET-6104.
-------------------------------------
       Resolution: Fixed
    Fix Version/s: 8.0.0-M1

> Rework AjaxFallback** components to use java.util.Optional for their #onEvent 
> methods
> -------------------------------------------------------------------------------------
>
>                 Key: WICKET-6104
>                 URL: https://issues.apache.org/jira/browse/WICKET-6104
>             Project: Wicket
>          Issue Type: Improvement
>          Components: wicket
>    Affects Versions: 8.0.0-M1
>            Reporter: Martin Grigorov
>            Assignee: Martin Grigorov
>             Fix For: 8.0.0-M1
>
>
> At the moment Wicket's passes "null" as a AjaxRequestTarget when an 
> AjaxFallback** component is used in a browser with disabled JavaScript.
> Sometimes application developers forget to check the passed "target" for null 
> and try to use and this leads to NullPointerException at runtime.
> It would be better to make use of Java 8's java.util.Optional. This way the 
> application developer cannot forget the check.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to