Skip to content

Commit

Permalink
fix(core): fix xml generator null pointer exception
Browse files Browse the repository at this point in the history
  • Loading branch information
timonback authored and sam0r040 committed May 24, 2024
1 parent e153c47 commit bc5b24d
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,8 @@ private Optional<Node> createNodeOrAddAttribute(String value, Schema schema) {
}

private boolean isAttribute(Schema schema) {
return schema.getXml() != null && schema.getXml().getAttribute();
return schema.getXml() != null
&& schema.getXml().getAttribute() != null
&& schema.getXml().getAttribute();
}
}

0 comments on commit bc5b24d

Please sign in to comment.