Skip to content

Commit f847820

Browse files
authored
Merge branch 'main' into 100-implement-repository-commandlet
2 parents b030586 + 6954a34 commit f847820

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

cli/src/main/java/com/devonfw/tools/ide/url/model/UrlMetadata.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,10 @@ public UrlVersion getVersionFolder(String tool, String edition, VersionIdentifie
115115

116116
VersionIdentifier resolvedVersion = getVersion(tool, edition, version);
117117
UrlVersion urlVersion = getEdition(tool, edition).getChild(resolvedVersion.toString());
118-
Objects.requireNonNull(urlVersion);
118+
if (urlVersion == null) {
119+
throw new IllegalArgumentException(
120+
"Version " + version + " for tool " + tool + " does not exist in edition " + edition + ".");
121+
}
119122
return urlVersion;
120123
}
121124

0 commit comments

Comments
 (0)