Uploaded image for project: 'Xerces2-J'
  1. Xerces2-J
  2. XERCESJ-1145

XInclude: NPE thrown when checking for recursive includes

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.8.0
    • 2.8.1
    • XInclude 1.0
    • None

    Description

      In XIncludeHandler's searchForRecursiveIncludes(), if the provided XMLLocator returns null for both getExpandedSystemId() and getLiteralSystemId(), an NPE will be thrown at the line:

      if (includedSystemId.equals(fCurrentBaseURI.getExpandedSystemId())) {

      Instead, if no location information is available, a more informative error or warning should be thrown to indicate that searching for recursive includes is not possible. In such a case, the method searchForRecursiveIncludes() should return false to allow processing to continue.

      Attachments

        Activity

          People

            peterjm Peter McCracken
            peterjm Peter McCracken
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: