Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 373640 - NPE in launcher introduced by bug 241192
Summary: NPE in launcher introduced by bug 241192
Status: RESOLVED FIXED
Alias: None
Product: Equinox
Classification: Eclipse Project
Component: Framework (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 major (vote)
Target Milestone: Juno M6   Edit
Assignee: Thomas Watson CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-08 08:08 EST by Krzysztof Daniel CLA
Modified: 2012-03-08 09:02 EST (History)
3 users (show)

See Also:


Attachments
Fix proposition (1.58 KB, patch)
2012-03-08 08:24 EST, Krzysztof Daniel CLA
tjwatson: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Krzysztof Daniel CLA 2012-03-08 08:08:12 EST
!SESSION Thu Mar 08 14:06:15 CET 2012 ------------------------------------------
!ENTRY org.eclipse.equinox.launcher 4 0 2012-03-08 14:06:15.038
!MESSAGE Exception launching the Eclipse Platform:
!STACK
java.lang.NullPointerException
        at org.eclipse.equinox.launcher.Main.substituteVars(Main.java:2707)
        at org.eclipse.equinox.launcher.Main.loadConfiguration(Main.java:1953)
        at org.eclipse.equinox.launcher.Main.processConfiguration(Main.java:1782)
        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:555)
        at org.eclipse.equinox.launcher.Main.run(Main.java:1437)
        at org.eclipse.equinox.launcher.Main.main(Main.java:1413)

<java classname="org.eclipse.equinox.launcher.Main" fork="true" dir="${basedir}" failonerror="true">
			<classpath>
				<pathelement path="bootstrap/plugins/org.eclipse.equinox.launcher.jar" />
			</classpath>
			<arg line="-configuration configuration " />
			<arg line="-application org.eclipse.ant.core.antRunner " />
			<arg line="-buildfile ${eclipse.pdebuild.scripts}/build.xml" />
			<arg line="-propertyfile ${basedir}/build.properties " />
			<arg line="-Dbuilder=${buildConfig} " />
			<arg line="-DbuildDirectory=${buildDirectory} " />
			<arg line="-DdontFetchBinaries=true" />
			<arg line="-consolelog " />
			<jvmarg value="-Xmx512M" />
		</java>

This invocation used to work until bug 241192 was fixed.
Comment 1 Krzysztof Daniel CLA 2012-03-08 08:24:53 EST
Created attachment 212290 [details]
Fix proposition
Comment 2 Thomas Watson CLA 2012-03-08 09:01:43 EST
Thanks for the bug find and fix!

I have release the patch with commit:

http://git.eclipse.org/c/equinox/rt.equinox.framework.git/commit/?id=e545f5e1428338ed3c28686ee22186898eca0a55