Skip to content

Commit

Permalink
Fix instance reference creation
Browse files Browse the repository at this point in the history
  • Loading branch information
grbeni committed Sep 7, 2021
1 parent 14d27d0 commit 6b09621
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -140,10 +140,10 @@ public ComponentInstanceReference createInstanceReference(List<ComponentInstance
reference.setChild(child);
reference = child;
}
ComponentInstanceReference finalReference =
StatechartModelDerivedFeatures.getParent(reference);
ComponentInstanceReference head =
StatechartModelDerivedFeatures.getFirstInstance(reference);
ecoreUtil.remove(reference); // No instance
return finalReference;
return head;
}

//
Expand Down

0 comments on commit 6b09621

Please sign in to comment.