[ 
https://issues.apache.org/jira/browse/WICKET-6104?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15168992#comment-15168992
 ] 

ASF subversion and git services commented on WICKET-6104:
---------------------------------------------------------

Commit ec1db0f3392b89af28c18889b11b76b43a4c768e in wicket's branch 
refs/heads/master from [~mgrigorov]
[ https://git-wip-us.apache.org/repos/asf?p=wicket.git;h=ec1db0f ]

WICKET-6104 Rework AjaxFallback** components to use java.util.Optional for 
their #onEvent methods


> 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
>
> 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