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