Skip to content

IDEasy repository setup command throws NPE #537

@jan-vcapgemini

Description

@jan-vcapgemini

Expected behavior

As an IDEasy user I expect the repository commandlet to work properly when I call it with ide repository setup and omit the repository.

Actual behavior

IDEasy throws a NullpointerException:

java.lang.NullPointerException: Cannot invoke "java.nio.file.Path.getFileSystem()" because "path" is null
	at java.base/java.nio.file.Files.provider(Files.java:104)
	at java.base/java.nio.file.Files.exists(Files.java:2514)
	at com.devonfw.tools.ide.property.PathProperty.validate(PathProperty.java:64)
	at com.devonfw.tools.ide.commandlet.Commandlet.validate(Commandlet.java:233)
	at com.devonfw.tools.ide.context.AbstractIdeContext.applyAndRun(AbstractIdeContext.java:912)
	at com.devonfw.tools.ide.context.AbstractIdeContext.run(AbstractIdeContext.java:864)
	at com.devonfw.tools.ide.cli.Ideasy.runOrThrow(Ideasy.java:88)
	at com.devonfw.tools.ide.cli.Ideasy.run(Ideasy.java:51)
	at com.devonfw.tools.ide.cli.Ideasy.main(Ideasy.java:28)

Steps to reproduce (bug) / Use Case of feature request (enhancement)

  1. run ide repository setup

Related/Dependent Issues

Comments/Hints:

Affected version:

  • IDEasy: 2024.08.001-beta-SNAPSHOT

Metadata

Metadata

Labels

repositoryCommandlet to clone, build or import git repositories

Type

Projects

Status

✅ Done

Relationships

None yet

Development

No branches or pull requests

Issue actions