Skip to content

Commit 37d3273

Browse files
committed
fix: Update condition to check for empty element in BpmnDocument
1 parent 7b77af6 commit 37d3273

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ProcessMaker/Nayra/Storage/BpmnDocument.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -712,7 +712,7 @@ public function getElementInstanceById($id)
712712
? $element->getBpmnElementInstance()
713713
: null
714714
);
715-
if ($this->bpmnElements[$id] === null && $element === null) {
715+
if ($this->bpmnElements[$id] === null && empty($element)) {
716716
throw new ElementNotFoundException($id);
717717
}
718718

0 commit comments

Comments
 (0)