Skip to content

Commit 94c7b73

Browse files
committed
Merge branch '100-implement-repository-commandlet' into 102-implement-update-commandlet
2 parents 25e4167 + 48db7c3 commit 94c7b73

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cli/src/main/java/com/devonfw/tools/ide/property/RepositoryProperty.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ public Path getValueAsPath(IdeContext context) {
5151
Path legacyRepositoriesPath = context.getSettingsPath().resolve(context.FOLDER_LEGACY_REPOSITORIES);
5252

5353
Path repositoryFile = Path.of(super.getValue());
54+
if (repositoryFile == null) return null;
55+
5456
if (!Files.exists(repositoryFile)) {
5557
repositoryFile = repositoriesPath.resolve(repositoryFile.getFileName().toString() + ".properties");
5658
}

0 commit comments

Comments
 (0)