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 <gmunozfe@redhat.com>

---------

Co-authored-by: Gonzalo Muñoz <gmunozfe@redhat.com>
  • Loading branch information
fjtirado and gmunozfe committed Oct 5, 2023
1 parent d0e6241 commit 175e6b9
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 175e6b9

Please sign in to comment.