[
https://issues.apache.org/jira/browse/WICKET-4706?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Martin Grigorov resolved WICKET-4706.
-------------------------------------
Resolution: Fixed
Fix Version/s: 6.0.0
1.5.8
Assignee: Martin Grigorov
> SerializableChecker.close throws NPE
> ------------------------------------
>
> Key: WICKET-4706
> URL: https://issues.apache.org/jira/browse/WICKET-4706
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 6.0.0-beta3
> Reporter: Sylvain Vieujot
> Assignee: Martin Grigorov
> Fix For: 1.5.8, 6.0.0
>
>
> The following code :
> try( SerializableChecker checker = new SerializableChecker( new
> NotSerializableException() ); ){
> checker.writeObject( page );
> }
> throws an NPE because SerializableChecker does not implement close.
> Creating a simple empty close method in SerializableChecker should fix the
> problem.
> java.lang.NullPointerException
> at java.io.ObjectOutputStream.flush(ObjectOutputStream.java:715)
> at java.io.ObjectOutputStream.close(ObjectOutputStream.java:736)
> at
> com.seanergie.wicket.WicketTestUtils.testPage(WicketTestUtils.java:92) //
> Line corresponding to the try closing }
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira