Uploaded image for project: 'Xerces2-J'
  1. Xerces2-J
  2. XERCESJ-1261

NullPointerException in org.xml.sax.ext.Attributes2Impl#addAttribute

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Invalid
    • 2.9.0
    • None
    • SAX
    • None
    • Any

    Description

      The following code generates a NullPointerException

      new org.xml.sax.ext.Attributes2Impl().addAttribute("","","","","");

      This is caused by the check of getLength against specified.length. After the constructor is called the specified and declared arrays are null. Adding a null check would resolve this problem.

      Attachments

        Activity

          People

            Unassigned Unassigned
            pepijnve Pepijn Van Eeckhoudt
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: