Skip to content

Commit

Permalink
fixed removeModel method (#897)
Browse files Browse the repository at this point in the history
  • Loading branch information
rsoika committed Jan 16, 2025
1 parent bb813c0 commit 7ba1b8d
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,11 @@ public void addModel(BPMNModel model) throws ModelException {
* Removes a BPMNModel form the local model store
*/
public void removeModel(String version) {
modelStore.remove(version);
clearCache();
// Test if version exists
if (modelStore.containsKey(version)) {
modelStore.remove(version);
clearCache();
}
}

/**
Expand Down

0 comments on commit 7ba1b8d

Please sign in to comment.