Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-5004

NPE at StaxUtils.copy for empty namespaces under JDK's XMLStreamReader

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.7.4
    • 2.7.5, 2.5.11, 2.6.9
    • Core
    • None
    • Unknown

    Description

      When XMLStreamReader returns null for getNamespceURI(int index), NPE is thrown during the invocation of the StaxUtils.copy method, as shown in:

      trying to invoke the method java.lang.String.equals(java.lang.Object) of an object loaded from local variable 'nsURI'
      java.lang.NullPointerException: while trying to invoke the method java.lang.String.equals(java.lang.Object) of an object loaded from local variable 'nsURI'
      at org.apache.cxf.staxutils.StaxUtils.writeStartElement(StaxUtils.java:659)
      at org.apache.cxf.staxutils.StaxUtils.copy(StaxUtils.java:574)
      at org.apache.cxf.staxutils.StaxUtils.copy(StaxUtils.java:562)
      a

      Attachments

        Activity

          People

            ay Akitoshi Yoshida
            ay Akitoshi Yoshida
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: