You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by bu...@apache.org on 2003/09/18 17:22:07 UTC

DO NOT REPLY [Bug 23252] New: - org.apache.xml.serializer.Utils throws NullPointerException

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=23252>.
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=23252

org.apache.xml.serializer.Utils throws NullPointerException

           Summary: org.apache.xml.serializer.Utils throws
                    NullPointerException
           Product: XalanJ2
           Version: CurrentCVS
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Major
          Priority: Other
         Component: org.apache.xalan
        AssignedTo: xalan-dev@xml.apache.org
        ReportedBy: erikw@hubspan.com


When using a custom ContentHandler to serialize the output from a 
transformation, xalan throws a null pointer exception if the class specified in 
the xalan:Content-Handler attribute of the output method cannot be loaded.  

This can easily be see by inspection. Line 110 of Utils.java: 

CacheHolder.cache.put(classname, null);

where cache is a HashTable. This will throw a null pointer every time due to 
the null. A HashTable will throw a null pointer if either the key or value is 
null.