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 46802 - NPE on closing many projects
Summary: NPE on closing many projects
Status: CLOSED WORKSFORME
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Infrastructure (show other bugs)
Version: 4.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on: 201230
Blocks: 42680
  Show dependency tree
 
Reported: 2004-07-30 22:43 UTC by _ tboudreau
Modified: 2011-11-03 15:41 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 _ tboudreau 2004-07-30 22:43:18 UTC
I had almost all of the projects in netbeans cvs open (trying to 
find usages of some openide/actions stuff), and decided to close 
a lot of them.  I selected 42 to close;  this was quite slow, and at 
the end, threw the following exception and failed to close a few:

java.lang.NullPointerException
	at 
org.netbeans.api.java.classpath.GlobalPathRegistry.unregister(Gl
obalPathRegistry.java:176)
	at 
org.netbeans.modules.apisupport.project.NbModuleProject$Ope
nedHook.projectClosed(NbModuleProject.java:571)
	at 
org.netbeans.spi.project.ui.ProjectOpenedHook$1.projectClosed(
ProjectOpenedHook.java:52)
	at 
org.netbeans.modules.project.ui.OpenProjectList.notifyClosed(O
penProjectList.java:323)
	at 
org.netbeans.modules.project.ui.OpenProjectList.close(OpenProj
ectList.java:160)
	at 
org.netbeans.modules.project.ui.actions.CloseProject.actionPerf
ormed(CloseProject.java:57)
	at 
org.netbeans.modules.project.ui.actions.LookupSensitiveAction.
actionPerformed(LookupSensitiveAction.java:69)
	at 
javax.swing.AbstractButton.fireActionPerformed(AbstractButton.j
ava:1819)
	at 
javax.swing.AbstractButton$ForwardActionEvents.actionPerform
ed(AbstractButton.java:1872)
	at 
javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButt
onModel.java:420)
	at 
javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.
java:258)
	at javax.swing.AbstractButton.doClick(AbstractButton.java:
321)
	at 
javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemU
I.java:1113)
	at 
javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mo
useReleased(BasicMenuItemUI.java:943)
	at 
java.awt.Component.processMouseEvent(Component.java:5157)
	at java.awt.Component.processEvent(Component.java:
4954)
	at java.awt.Container.processEvent(Container.java:1607)
	at java.awt.Component.dispatchEventImpl(Component.java:
3672)
	at java.awt.Container.dispatchEventImpl(Container.java:
1665)
	at java.awt.Component.dispatchEvent(Component.java:
3534)
	at 
java.awt.LightweightDispatcher.retargetMouseEvent(Container.ja
va:3521)
	at 
java.awt.LightweightDispatcher.processMouseEvent(Container.ja
va:3236)
	at 
java.awt.LightweightDispatcher.dispatchEvent(Container.java:
3166)
	at java.awt.Container.dispatchEventImpl(Container.java:
1651)
	at java.awt.Window.dispatchEventImpl(Window.java:1606)
	at java.awt.Component.dispatchEvent(Component.java:
3534)
[catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:
481)
	at 
java.awt.EventDispatchThread.pumpOneEventForHierarchy(Event
DispatchThread.java:234)
	at 
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDis
patchThread.java:184)
	at 
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread
.java:178)
	at 
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread
.java:170)
	at 
java.awt.EventDispatchThread.run(EventDispatchThread.java:
100)
Comment 1 Jesse Glick 2004-07-30 23:02:29 UTC
Well I have no idea how that could happen. Looks like a project was
being closed that was never opened. I will put in some extra
assertions to try to track it down for next time.
Comment 2 Jesse Glick 2004-07-30 23:31:39 UTC
Debug asserts:

committed     Up-To-Date  1.45       
apisupport/project/src/org/netbeans/modules/apisupport/project/NbModuleProject.java
Comment 3 Marian Mirilovic 2005-07-12 10:11:07 UTC
closed
Comment 4 Quality Engineering 2011-11-02 15:18:25 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/3e07942771da
User: Jesse Glick <jglick@netbeans.org>
Log: #201230: AssertionError: #46802: project being closed which was never opened?? NbModuleProject[/space/src/nb/main/web.struts@4371e7ca:80d4ac]
Comment 5 Quality Engineering 2011-11-03 15:41:44 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/3e07942771da
User: Jesse Glick <jglick@netbeans.org>
Log: #201230: AssertionError: #46802: project being closed which was never opened?? NbModuleProject[/space/src/nb/main/web.struts@4371e7ca:80d4ac]