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.
If there is no
appmap.yml
anywhere in the directory tree above the current working directory,init
fails:Running
init
a second time after the fail will succeed.