We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 94c7b73 commit 4c2291aCopy full SHA for 4c2291a
cli/src/main/java/com/devonfw/tools/ide/property/RepositoryProperty.java
@@ -50,8 +50,12 @@ public Path getValueAsPath(IdeContext context) {
50
Path repositoriesPath = context.getSettingsPath().resolve(context.FOLDER_REPOSITORIES);
51
Path legacyRepositoriesPath = context.getSettingsPath().resolve(context.FOLDER_LEGACY_REPOSITORIES);
52
53
- Path repositoryFile = Path.of(super.getValue());
54
- if (repositoryFile == null) return null;
+ Path repositoryFile;
+ if (super.getValue() != null) {
55
+ repositoryFile = Path.of(super.getValue());
56
+ } else {
57
+ return null;
58
+ }
59
60
if (!Files.exists(repositoryFile)) {
61
repositoryFile = repositoriesPath.resolve(repositoryFile.getFileName().toString() + ".properties");
0 commit comments