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 96709 - Deleting src dir throws NPE
Summary: Deleting src dir throws NPE
Status: VERIFIED FIXED
Alias: None
Product: soa
Classification: Unclassified
Component: BPEL Project (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: Alexander Zgursky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-27 17:41 UTC by Mikhail Kondratyev
Modified: 2007-07-20 10:43 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 Mikhail Kondratyev 2007-02-27 17:41:20 UTC
Steps to reproduce:
 - create Sync sample project
 - switch to the Files tab
 - select BPEL module's src dir
 - delete the src dir
NPE will be thrown:
java.lang.NullPointerException
	at
org.openide.util.lookup.InstanceContent$SimpleItem.<init>(InstanceContent.java:150)
	at org.openide.util.lookup.SimpleLookup.<init>(SimpleLookup.java:47)
	at org.openide.util.lookup.Lookups.fixed(Lookups.java:75)
	at org.netbeans.modules.bpel.core.BPELDataObject.getLookup(BPELDataObject.java:149)
	at
org.netbeans.modules.bpel.core.BPELDataEditorSupport.getValidationController(BPELDataEditorSupport.java:573)
	at
org.netbeans.modules.bpel.core.BPELDataEditorSupport.notifyClosed(BPELDataEditorSupport.java:511)
	at org.openide.text.CloneableEditorSupport.close(CloneableEditorSupport.java:1866)
Comment 1 Alexei Mokeev 2007-02-27 19:32:13 UTC
Filed after Bug Cut Off. Not a stopper for Beta.
Comment 2 Alexei Mokeev 2007-03-05 17:20:39 UTC
Removed Beta EP551_WAIVER_APPROVED keyword - we are going forward to FCS.
Comment 3 Alexander Zgursky 2007-07-06 11:18:33 UTC
Fixed in trunk:

Checking in samples/src/org/netbeans/modules/bpel/samples/SoaSampleUtils.java;
/cvs/enterprise/bpel/samples/src/org/netbeans/modules/bpel/samples/SoaSampleUtils.java,v  <--  SoaSampleUtils.java
new revision: 1.6; previous revision: 1.5
done
Checking in project/src/org/netbeans/modules/bpel/project/BpelproProjectGenerator.java;
/cvs/enterprise/bpel/project/src/org/netbeans/modules/bpel/project/BpelproProjectGenerator.java,v  <-- 
BpelproProjectGenerator.java
new revision: 1.8; previous revision: 1.7
done
Checking in core/src/org/netbeans/modules/bpel/core/wizard/NewBpelFileIterator.java;
/cvs/enterprise/bpel/core/src/org/netbeans/modules/bpel/core/wizard/NewBpelFileIterator.java,v  <-- 
NewBpelFileIterator.java
new revision: 1.5; previous revision: 1.4
done
Comment 4 Alexander Zgursky 2007-07-06 11:19:34 UTC
Closed by mistake - reopening..
Comment 5 Alexander Zgursky 2007-07-11 11:30:40 UTC
Reproduced with slightly different scenario and NPE:
- create Sync sample project
 - open SynchronousSampleXX.bpel in the editor
 - switch to the Files tab
 - select BPEL module's src dir
 - delete the src dir

throws java.lang.NullPointerException
	at org.netbeans.modules.navigator.NavigatorController.obtainFirstCurNode(NavigatorController.java:209)
	at org.netbeans.modules.navigator.NavigatorController.updateContext(NavigatorController.java:235)
[catch] at org.netbeans.modules.navigator.NavigatorController.run(NavigatorController.java:476)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
	at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

I believe there are a number of places in the code which rely on the existence of "src" dir. Need to track them down and
fix.
Comment 6 Alexander Zgursky 2007-07-19 15:21:51 UTC
Can not reproduce with the fresh sources, most probably because of the fix of issue 108066.
Although, I got another NPE while trying to reproduce. A separate issue 110298 was filed for it.
I believe we can close this issue now.
Comment 7 Ivan Sidorkin 2007-07-20 10:43:52 UTC
verified in Build 200707171200