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