DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9620>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9620 NPE when using AElfred XML parser Summary: NPE when using AElfred XML parser Product: Tomcat 4 Version: 4.0.4 Beta 3 Platform: All OS/Version: All Status: NEW Severity: Normal Priority: Other Component: Catalina AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] In package org.apache.catalina.util.xml.XmlMapper:resolveEntity it is assumed that publicId is always non-null, it is immediately used as a key for looking up mappings. The AElfred XML parser distributed with Saxon calls resolveEntity also in order to provide a hook for mapping any entities, including the XML source itself. The public id may be null in this case, this results ultimately in a NullPointerException in Hashtable.get(). Suggested patch: enclose the main part of the resolveEntity method from after the this.publicId=publicId; statement to the final return null; statement in an if( publicId!=null ) {} conditional. -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>