Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [m2e-dev] NPE with Change 'made maven launch logic easier to reuse'

I thought I tested this, but I obviously haven't. Anyone feels like
setting up regression tests for run-as-maven to catch this king of
problems? ;-)

Anyways, should be fixes now, thank you for reporting this.

http://git.eclipse.org/c/m2e/m2e-core.git/commit/?id=26465b4ded7ad38088a2314f31b9b5bcd5151630

--
Regards,
Igor

On 11/25/2013, 8:06, Andreas Weise wrote:
Hi Igor,

a recent commit raises a NPE when lauching a Maven Build.

http://git.eclipse.org/c/m2e/m2e-core.git/commit/org.eclipse.m2e.launching/src/org/eclipse/m2e/internal/launch/MavenLaunchDelegate.java?id=2eeb2e47d3b1beb654c229bf109d7459721dcaf0

java.lang.NullPointerException
at
org.eclipse.m2e.internal.launch.MavenLaunchDelegate.getProgramArguments(MavenLaunchDelegate.java:98)
at
org.eclipse.m2e.internal.launch.MavenLaunchDelegate.launch(MavenLaunchDelegate.java:61)
at
org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:858)
at
org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:707)
at
org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:1018)
at
org.eclipse.debug.internal.ui.DebugUIPlugin$8.run(DebugUIPlugin.java:1222)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)

Seems like the getProgramArguments() method, which is invoked at line 61
uses this.extensionsSupport, before it gets instantiated in line 65.

Best regards
Andreas


_______________________________________________
m2e-dev mailing list
m2e-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/m2e-dev



Back to the top