Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8129748

XPathResultImpl.java throws incorrect exception in constructor.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P4 P4
    • None
    • 8u45
    • 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.

            aefimov Aleksej Efimov
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: