Bug 25509 - NPE from InternalAntRunner
Summary: NPE from InternalAntRunner
Status: VERIFIED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Ant (show other bugs)
Version: 2.0   Edit
Hardware: PC All
: P1 normal (vote)
Target Milestone: 2.1 M3   Edit
Assignee: Jared Burns CLA
QA Contact:
URL:
Whiteboard:
Keywords: core
Depends on:
Blocks:
 
Reported: 2002-10-29 14:02 EST by Jared Burns CLA
Modified: 2002-10-29 15:37 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jared Burns CLA 2002-10-29 14:02:17 EST
I got the following NPE while running an Ant script with the -inputhandler parameter.

java.lang.NullPointerException
	at org.eclipse.ant.internal.core.ant.InternalAntRunner.preprocessCommandLine(InternalAntRunner.java:762)
	at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:443)
	at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:300)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:324)
	at org.eclipse.ant.core.AntRunner.run(AntRunner.java:307)
	at org.eclipse.ui.externaltools.internal.core.AntFileRunner.execute(AntFileRunner.java:67)
	at org.eclipse.ui.externaltools.internal.core.DefaultRunnerContext.executeRunner(DefaultRunnerContext.java:334)
	at org.eclipse.ui.externaltools.internal.core.DefaultRunnerContext.run(DefaultRunnerContext.java:384)
	at org.eclipse.ui.externaltools.internal.ui.ExternalToolsAction$4.run(ExternalToolsAction.java:202)
	at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:98)
Comment 1 Darin Swanson CLA 2002-10-29 14:12:08 EST
the antVersion static var is lazily initialized.
Should have been using the accessor.
Fixed in InternalAntRunner.
Comment 2 Darin Swanson CLA 2002-10-29 14:12:23 EST
Please verify.
Comment 3 Jared Burns CLA 2002-10-29 15:37:27 EST
Verified.