Skip to content

Commit

Permalink
Merge branch 'main' into feature/devonfw#13-implement-ToolCommandlet-…
Browse files Browse the repository at this point in the history
…for-AWS-CLI
  • Loading branch information
MattesMrzik authored Jan 11, 2024
2 parents b5a2d4b + 6954a34 commit 208b39d
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,10 @@ public UrlVersion getVersionFolder(String tool, String edition, VersionIdentifie

VersionIdentifier resolvedVersion = getVersion(tool, edition, version);
UrlVersion urlVersion = getEdition(tool, edition).getChild(resolvedVersion.toString());
Objects.requireNonNull(urlVersion);
if (urlVersion == null) {
throw new IllegalArgumentException(
"Version " + version + " for tool " + tool + " does not exist in edition " + edition + ".");
}
return urlVersion;
}

Expand Down

0 comments on commit 208b39d

Please sign in to comment.