-
Bug
-
Resolution: Won't Fix
-
P4
-
None
-
8u45
-
x86
-
windows_8
FULL PRODUCT VERSION :
java version "1.8.0_40"
Java(TM) SE Runtime Environment (build 1.8.0_40-b26)
Java HotSpot(TM) 64-Bit Server VM (build 25.40-b25, mixed mode)
A DESCRIPTION OF THE PROBLEM :
In the file: com\sun\org\apache\xpath\internal\domapi\XPathResultImpl.java line 113
The result object is checked if it is null and an XPathException is being thrown. However, in all other parts of the package when a null value is encountered the expectation is to throw a NullPointerException.
This particular null check is an outlier because it is the only one which constructs the XPATHMessage and then doesn't throw a NullPointerException.
REPRODUCIBILITY :
This bug can be reproduced always.
java version "1.8.0_40"
Java(TM) SE Runtime Environment (build 1.8.0_40-b26)
Java HotSpot(TM) 64-Bit Server VM (build 25.40-b25, mixed mode)
A DESCRIPTION OF THE PROBLEM :
In the file: com\sun\org\apache\xpath\internal\domapi\XPathResultImpl.java line 113
The result object is checked if it is null and an XPathException is being thrown. However, in all other parts of the package when a null value is encountered the expectation is to throw a NullPointerException.
This particular null check is an outlier because it is the only one which constructs the XPATHMessage and then doesn't throw a NullPointerException.
REPRODUCIBILITY :
This bug can be reproduced always.