Uploaded image for project: 'XalanJ2'
  1. XalanJ2
  2. XALANJ-1967

NullPointerException during transformation in my web application.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.7
    • 2.7
    • None
    • Windows 2000. Xalan Java 2.6.0

    Description

      The following error occurs in when I run my application.

      ----------------------------
      java.lang.NullPointerException
      at org.apache.xml.serializer.ToHTMLStream.processAttribute(ToHTMLStream.java:957)
      at org.apache.xml.serializer.ToHTMLStream.processAttributes(ToHTMLStream.java:1644)
      at org.apache.xml.serializer.ToHTMLStream.endElement(ToHTMLStream.java:883)
      at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:708)
      ----------------------------

      My application is big, I cannot provide my application as testcase. However, I do know the reason for this failure. I will provide a patch that provide a more reasonable error message rather than NullPointerException.

      Attachments

        1. Patch.txt
          5 kB
          Yash Talwar
        2. patch.1967.txt
          4 kB
          Brian Minchau

        Activity

          People

            Unassigned Unassigned
            yashtalwar Yash Talwar
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: