XInclude: NPE thrown when checking for recursive includes
---------------------------------------------------------
Key: XERCESJ-1145
URL: http://issues.apache.org/jira/browse/XERCESJ-1145
Project: Xerces2-J
Type: Bug
Components: XInclude 1.0
Versions: 2.8.0
Reporter: Peter McCracken
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.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]