Skip to content

java.lang.NullPointerException when trying to auto-complete after ide repository #853

@WorkingAmeise

Description

@WorkingAmeise

Expected behavior

As a IDEasy User, I want autocompletion in the repository commandlet so that i can see valid options to input

Actual behavior

ide repository An unexpected error occurred!
We are sorry for the inconvenience.
Please check the error below, resolve it and try again.
If the error is not on your end (network connectivity, lack of permissions, etc.) please file a bug:
https://github.com/devonfw/IDEasy/issues/new?assignees=&labels=bug&projects=&template=bug.md&title=java.lang.NullPointerException
java.lang.NullPointerException
        at java.base@21.0.2/java.nio.file.Files.provider(Files.java:104)
        at java.base@21.0.2/java.nio.file.Files.isDirectory(Files.java:2318)
        at com.devonfw.tools.ide.property.PathProperty.completeValue(PathProperty.java:113)
        at com.devonfw.tools.ide.property.Property.complete(Property.java:412)
        at com.devonfw.tools.ide.property.Property.apply(Property.java:337)
        at com.devonfw.tools.ide.context.AbstractIdeContext.completeCommandlet(AbstractIdeContext.java:968)
        at com.devonfw.tools.ide.context.AbstractIdeContext.complete(AbstractIdeContext.java:919)
        at com.devonfw.tools.ide.commandlet.CompleteCommandlet.run(CompleteCommandlet.java:53)
        at com.devonfw.tools.ide.context.AbstractIdeContext.applyAndRun(AbstractIdeContext.java:867)
        at com.devonfw.tools.ide.context.AbstractIdeContext.run(AbstractIdeContext.java:798)
        at com.devonfw.tools.ide.cli.Ideasy.runOrThrow(Ideasy.java:89)
        at com.devonfw.tools.ide.cli.Ideasy.run(Ideasy.java:52)
        at com.devonfw.tools.ide.cli.Ideasy.main(Ideasy.java:29)
        at java.base@21.0.2/java.lang.invoke.LambdaForm$DMH/sa346b79c.invokeStaticInit(LambdaForm$DMH)


Error in property setup:
Value is required and cannot be empty.
Invalid arguments: "repository"

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

  1. type ide repository and a space

  2. press tab

  3. type ide repository set

  4. press tab

Related/Dependent Issues

Comments/Hints:

Affected version:

  • OS: Windows
  • Browser: /

Metadata

Metadata

Assignees

Labels

completionauto-completion in bash or build in CLIgood first issueGood for newcomers

Type

Projects

Status

✅ Done

Relationships

None yet

Development

No branches or pull requests

Issue actions