Skip to content

Commit

Permalink
devonfw/ide#1090: fixed assertion bug
Browse files Browse the repository at this point in the history
  • Loading branch information
hohwille committed Sep 19, 2023
1 parent c002fa8 commit 242e889
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@ public SystemPath(String envPath, Path softwarePath, char pathSeparator) {
this.paths.add(path);
} else {
Path duplicate = this.tool2pathMap.putIfAbsent(tool, path);
assert (duplicate != null);
if (duplicate != null) {
throw new IllegalStateException("Duplicate tool path for " + tool + ":" + path + " and " + duplicate);
}
}
}
collectToolPath(softwarePath);
Expand Down

0 comments on commit 242e889

Please sign in to comment.