This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 32847 - External Execution: Setting the working dir to a non-existing dir causes NPE
Summary: External Execution: Setting the working dir to a non-existing dir causes NPE
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P4 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-04-13 22:57 UTC by tkellerer
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tkellerer 2003-04-13 22:57:33 UTC
After moving my project directory around I
couldn't start my application any longer because I
got an NPE, which was cause due to the no-longer
existing working directory for the external
compiler which no longer existed. I think some
message that the directory does not exist or
something similar would be better 


java.lang.NullPointerException
	at
org.openide.loaders.ExecutionSupport.choose(ExecutionSupport.java:355)
	at
org.openide.loaders.ExecutionSupport.startFailed(ExecutionSupport.java:108)
[catch] at
org.openide.loaders.ExecutionSupport$1.run(ExecutionSupport.java:92)
	at
java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
	at
java.awt.EventQueue.dispatchEvent(EventQueue.java:448)
	at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:197)
	at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
	at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144)
	at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)
	at
java.awt.EventDispatchThread.run(EventDispatchThread.java:99)
Comment 1 Tomas Zezula 2003-08-27 14:36:07 UTC
NB4.0 solves this by BuildTargetOutputFolder.
Comment 2 Jan Becicka 2004-06-23 09:17:28 UTC
Fixed in promo-D. Relevant code completely rewritten.