JDK-8203368 : ObjectInputStream filterCheck method throws NullPointerException
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.io:serialization
  • Affected Version: 10
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2018-05-17
  • Updated: 2019-01-14
  • Resolved: 2018-05-25
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 10 JDK 11 JDK 7 JDK 8 Other
10.0.2Fixed 11 b16Fixed 7u191Fixed 8u181Fixed openjdk7uFixed
Description
The internal ObjectInputStream.filterCheck method throws NullPointerException in the case where the ObjectInputStream has been subclassed to override the InputStream accesses because the OIS itself has a null input stream.
When a subclasses OIS is constructed via the protected no-arg constructor, information about the graph depth, number of references, and bytes in the input stream is not available.