bpmn-diff
bpmn-diff copied to clipboard
NPE on Windows
I'm getting the below error on windows.
java.lang.NullPointerException
at de.dplatz.bpmndiff.browsers.EnvPath.isExecutableInDir(EnvPath.java:34)
at de.dplatz.bpmndiff.browsers.EnvPath.lambda$isExecutableOnPath$2(EnvPath.java:28)
at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:176)
at java.util.ArrayList$ArrayListSpliterator.tryAdvance(ArrayList.java:1631)
at java.util.stream.ReferencePipeline.forEachWithCancel(ReferencePipeline.java:127)
at java.util.stream.AbstractPipeline.copyIntoWithCancel(AbstractPipeline.java:502)
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:488)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
at java.util.stream.FindOps$FindOp.evaluateSequential(FindOps.java:150)
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.util.stream.ReferencePipeline.findAny(ReferencePipeline.java:548)
at de.dplatz.bpmndiff.browsers.EnvPath.isExecutableOnPath(EnvPath.java:29)
at de.dplatz.bpmndiff.browsers.Chrome.open(Chrome.java:26)
at de.dplatz.bpmndiff.browsers.BrowserDetection$Strategy$1.open(BrowserDetection.java:25)
at de.dplatz.bpmndiff.DiffCommand.call(DiffCommand.java:87)
at de.dplatz.bpmndiff.DiffCommand.call(DiffCommand.java:28)
at picocli.CommandLine.executeUserObject(CommandLine.java:1783)
at picocli.CommandLine.access$900(CommandLine.java:145)
at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2150)
at picocli.CommandLine$RunLast.handle(CommandLine.java:2144)
at picocli.CommandLine$RunLast.handle(CommandLine.java:2108)
at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:1975)
at picocli.CommandLine.execute(CommandLine.java:1904)
at de.dplatz.bpmndiff.DiffCommand.run(DiffCommand.java:58)
at de.dplatz.bpmndiff.DiffCommand_ClientProxy.run(DiffCommand_ClientProxy.zig:181)
at io.quarkus.runtime.ApplicationLifecycleManager.run(ApplicationLifecycleManager.java:111)
at io.quarkus.runtime.Quarkus.run(Quarkus.java:61)
at io.quarkus.runtime.Quarkus.run(Quarkus.java:38)
at io.quarkus.runner.GeneratedMain.main(GeneratedMain.zig:30)
I had a look at the source code and made sure that I have updated the path directory with Folder where my chrome.exe is present. Since the CHROME_EXECUTABLES in de.dplatz.bpmndiff.browsers.Chrome.java is defined as { "google-chrome", "google" }, I have created a copy of chrome.exe as google-chrome.exe and google.exe but still getting the same error.
Tried running the Command Prompt in Administrator mode, but still no luck.
What else am I missing here ?
Is there a way to run the windows exe in a debug mode and see debug logs ?
Here is the exe file that I'm using : https://github.com/38leinaD/bpmn-diff/releases/download/0.1.0/bpmn-diff-0.1.0-win64.exe