XPathResultImpl.java throws incorrect exception in constructor.

XMLWordPrintable

    • Type: Bug
    • Resolution: Won't Fix
    • Priority: P4
    • None
    • Affects Version/s: 8u45
    • Component/s: xml

      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.

            Assignee:
            Aleksej Efimov
            Reporter:
            Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: