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

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

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Invalid
    • Affects Version/s: 2.9.0
    • Fix Version/s: None
    • Component/s: SAX
    • Labels:
      None
    • Environment:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: