IBM / codenet-minerva-code-analyzer

Java source code (and/or binary) to JSON based system dependency graph generator.
Apache License 2.0
2 stars 5 forks source link

Running code analyzer without any arguments throws a NullPointerException #30

Open rofrano opened 4 months ago

rofrano commented 4 months ago

When running code analyzer without any arguments it throws a java.lang.NullPointerException.

It would be nice if it printed out some helpful information about how to use it instead. ;-)

$ java -jar codeanalyzer.jar 
java.lang.NullPointerException
    at java.base/java.util.Objects.requireNonNull(Objects.java:209)
    at java.base/sun.nio.fs.UnixFileSystem.getPath(UnixFileSystem.java:263)
    at java.base/java.nio.file.Path.of(Path.java:147)
    at java.base/java.nio.file.Paths.get(Paths.java:69)
    at com.ibm.northstar.utils.BuildProject.downloadLibraryDependencies(BuildProject.java:132)
    at com.ibm.northstar.CodeAnalyzer.analyze(CodeAnalyzer.java:107)
    at com.ibm.northstar.CodeAnalyzer.run(CodeAnalyzer.java:86)
    at picocli.CommandLine.executeUserObject(CommandLine.java:1767)
    at picocli.CommandLine.access$900(CommandLine.java:145)
    at picocli.CommandLine$RunLast.handle(CommandLine.java:2139)
    at picocli.CommandLine$RunLast.handle(CommandLine.java:2106)
    at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:1973)
    at picocli.CommandLine.execute(CommandLine.java:1902)
    at com.ibm.northstar.CodeAnalyzer.main(CodeAnalyzer.java:77)