Aki Yoshida created CXF-5004:
--------------------------------
Summary: NPE at StaxUtils.copy for empty namespaces under JDK's
XMLStreamReader
Key: CXF-5004
URL: https://issues.apache.org/jira/browse/CXF-5004
Project: CXF
Issue Type: Bug
Components: Core
Affects Versions: 2.7.4
Reporter: Aki Yoshida
Assignee: Aki Yoshida
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
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira