Skip to content

Commit

Permalink
fix null pointer exception in XmlStackBuilderThingy.
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-santos committed Feb 22, 2023
1 parent f1e45ec commit fc29783
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public XmlStackBuilderThingy(Document doc) {

@Override
public Element push(Element e) {
if (!this.empty())
if (this.empty())
this.doc.appendChild(e);
else
super.peek().appendChild(e);
Expand Down

0 comments on commit fc29783

Please sign in to comment.