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
…#2344)

* [JBPM-10203] Fixing null pointer exception for cancelActivity

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



---------

Co-authored-by: Francisco Javier Tirado Sarti <65240126+fjtirado@users.noreply.github.com>
Co-authored-by: Gonzalo Muñoz <gmunozfe@redhat.com>
  • Loading branch information
3 people committed Oct 6, 2023
1 parent a610027 commit 16f3a51
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 16f3a51

Please sign in to comment.