Skip to content

Commit

Permalink
[JBPM-10203] Fixing null pointer exception for cancelActivity (#2342)
Browse files Browse the repository at this point in the history
* [JBPM-10203] Fixing null pointer exception for cancelActivity

* Update jbpm-bpmn2/src/main/java/org/jbpm/bpmn2/xml/BoundaryEventHandler.java

Co-authored-by: Gonzalo Muñoz <[email protected]>

---------

Co-authored-by: Gonzalo Muñoz <[email protected]>
  • Loading branch information
fjtirado and gmunozfe authored Oct 5, 2023
1 parent a610027 commit 9e984fd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public Object end(final String uri, final String localName,
Node node = (Node) parser.getCurrent();
String attachedTo = element.getAttribute("attachedToRef");
Attr cancelActivityAttr = element.getAttributeNode("cancelActivity");
boolean cancelActivity = Boolean.parseBoolean(cancelActivityAttr.getValue());
boolean cancelActivity = cancelActivityAttr == null || Boolean.parseBoolean(cancelActivityAttr.getValue());

// determine type of event definition, so the correct type of node can be generated
org.w3c.dom.Node xmlNode = element.getFirstChild();
Expand Down

0 comments on commit 9e984fd

Please sign in to comment.