Closed javierron closed 4 years ago
Hi @javierron Do you have the command you use to launch Astor? Thanks Matias
Sure, you can see the call here:
This worked on version 20190919
, but breaks in version 1.0.0-SNAPSHOT
after I upgraded to get the fix for the GZoltar exception.
Hi Javier Do you have the stack trace of the NPE? Thanks! Regards Matias
Hello
I am getting this in the log:
Error retrieving java version: java.lang.NullPointerException
Error retrieving java version output obtained:
And then stack trace
java.lang.NullPointerException: null
at java.io.File.<init>(File.java:277)
at fr.inria.main.AbstractMain.processArguments(AbstractMain.java:422)
at fr.inria.main.evolution.AstorMain.execute(AstorMain.java:214)
at fr.inria.spirals.repairnator.process.step.repair.sequencer.detection.AstorDetectionStrategy.detect(AstorDetectionStrategy.java:52)
...
I have traced the issue and it seems that the
location
configuration property is being required here: https://github.com/SpoonLabs/astor/blob/352355e4e9f335427a75cd78303e3d37064802c6/src/main/java/fr/inria/main/AbstractMain.java#L378https://github.com/SpoonLabs/astor/blob/352355e4e9f335427a75cd78303e3d37064802c6/src/main/java/fr/inria/astor/core/setup/ProjectConfiguration.java#L274
Before being stored in the properties map here:
https://github.com/SpoonLabs/astor/blob/352355e4e9f335427a75cd78303e3d37064802c6/src/main/java/fr/inria/main/AbstractMain.java#L396
It might be related to: https://github.com/SpoonLabs/astor/issues/236