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

NullPointerException in StringVector.contains(String)

           Summary: NullPointerException in StringVector.contains(String)
           Product: XalanJ2
           Version: 2.4
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Critical
          Priority: Other
         Component: org.apache.xml.utils
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


Using the SAXTransformerFactory, when attempting to compile newTemplates(), the 
following stylesheet:

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; 
xmlns:system="xalan://java.lang.System" 
xmlns:decoder="xalan://java.net.URLDecoder" version="1.0" extension-element-
prefixes="file decoder">
        <xsl:output method="xml" omit-xml-declaration="yes" indent="yes"/>
        <xsl:param name="fileName"></xsl:param>

        <xsl:template match="/">
                <root>
                        <subconfig name="alpha" task="assign">
                                <file>e:\tmp_area\xml\<xsl:value-of 
select="$fileName"/>.xml</file>
                                <op>ELIMINATE</op>
                        </subconfig>
                </root>
        </xsl:template>
</xsl:stylesheet>

...will cause a NullPointerException on line 175 of StringVector.java.  
According to the IntelliJ debugger, the values in the m_map array (size of 
array: 4) are as follows:

m_map[0] = null
m_map[1] = "xalan://java.net.URLDecoder"
m_map[2] = null
m_map[3] = null

The NullPointerException would occur on this array when i == 0

Reply via email to