Skip to content

Commit

Permalink
Avoid NullPointerException when used with Axis2 1.5
Browse files Browse the repository at this point in the history
  • Loading branch information
ind1go authored and dkulp committed Jun 9, 2022
1 parent e0a8758 commit 23a64ee
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,10 @@ public void writeStartDocument() throws XMLStreamException {
}

public void writeStartElement(String prefix, String local, String ns) throws XMLStreamException {
if (current == null) {
this.writeStartDocument();
}

String parentKey = current.getTreeKey();
stack.push(current);
String key = convention.createKey(prefix, ns, local);
Expand Down

0 comments on commit 23a64ee

Please sign in to comment.