getappmap / appmap-java

AppMap client agent for Java
Other
80 stars 14 forks source link

Initializing an empty project fails #280

Closed apotterri closed 1 month ago

apotterri commented 1 month ago

If there is no appmap.yml anywhere in the directory tree above the current working directory, init fails:

java.lang.NullPointerException: Cannot invoke "java.nio.file.Path.resolve(String)" because the return value of "java.nio.file.Path.getParent()" is null
at com.appland.appmap.config.AppMapConfig.initialize(AppMapConfig.java:329)
at com.appland.appmap.cli.Init.call(Init.java:34)
at com.appland.appmap.cli.Init.call(Init.java:13)
at com.appland.shade.picocli.CommandLine.executeUserObject(CommandLine.java:1953)
at com.appland.shade.picocli.CommandLine.access$1300(CommandLine.java:145)
at com.appland.shade.picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2352)
at com.appland.shade.picocli.CommandLine$RunLast.handle(CommandLine.java:2346)
at com.appland.shade.picocli.CommandLine$RunLast.handle(CommandLine.java:2311)
at com.appland.shade.picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2179)
at com.appland.shade.picocli.CommandLine.execute(CommandLine.java:2078)
at com.appland.appmap.cli.CLI.main(CLI.java:44)

Running init a second time after the fail will succeed.

appland-release commented 1 month ago

:tada: This issue has been resolved in version 1.26.9 :tada:

The release is available on:

Your semantic-release bot :package::rocket: