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

NullPointerException in format-number/BasisLibrary

           Summary: NullPointerException in format-number/BasisLibrary
           Product: XalanJ2
           Version: 2.4
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: org.apache.xalan.xsltc
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


Version 2.4.0

I receive the following stack trace when calling format-number from an included
stylesheet.  But if I include any format-number call in the top level stylesheet
(i.e. <xsl:variable name="dummy" select="format-number(1, '###0.00')" />), then
the problem doesn't occur.  The pattern does not have to match the pattern used
in the included stylesheet and the format-number call can appear anywhere in the
top level stylesheet.

java.lang.NullPointerException
        at 
org.apache.xalan.xsltc.runtime.BasisLibrary.formatNumber(BasisLibrary.java:919)
        at civilJdgmtDetails.CivilJdgmtDetailRow()
        at civilJdgmtDetails.applyTemplates()
        at civilJdgmtDetails.applyTemplates()
        at civilJdgmtDetails.applyTemplates()
        at civilJdgmtDetails.header$dash$footer()
        at civilJdgmtDetails.applyTemplates()
        at civilJdgmtDetails.transform()
        at
org.apache.xalan.xsltc.runtime.AbstractTranslet.transform(AbstractTranslet.java:491)
        at 
org.apache.xalan.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:635)

Reply via email to