Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-4706

SerializableChecker.close throws NPE

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 6.0.0-beta3
    • 1.5.8, 6.0.0
    • wicket
    • None

    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 }

      Attachments

        Activity

          People

            mgrigorov Martin Tzvetanov Grigorov
            svieujot Sylvain Vieujot
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: