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 111445 - NPE after invoking "Open ???"
Summary: NPE after invoking "Open ???"
Status: RESOLVED WONTFIX
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Infrastructure (show other bugs)
Version: 6.x
Hardware: All Windows Vista
: P4 blocker (vote)
Assignee: Milos Kleint
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-31 10:41 UTC by novakm
Modified: 2009-12-21 06:07 UTC (History)
1 user (show)

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 novakm 2007-07-31 10:41:40 UTC
I did following steps:
1) Setup a new project and add it to CVS
2) Delete it (check that you also want to delete sources)
3) Open favorites view and invoke add to favorites
4) Select the directory with name of previously created and deleted project
5) Right click in the favorite view on directory added in step 4) - there was action called "Open ???" or something like
that. When I invoked it, following NPE was thrown:

java.lang.NullPointerException
	at org.netbeans.spi.project.support.ant.GeneratedFilesHelper$1$1.run(GeneratedFilesHelper.java:262)
	at org.openide.filesystems.EventControl.runAtomicAction(EventControl.java:98)
	at org.openide.filesystems.FileSystem.runAtomicAction(FileSystem.java:477)
	at org.netbeans.spi.project.support.ant.GeneratedFilesHelper$1.run(GeneratedFilesHelper.java:257)
	at org.netbeans.spi.project.support.ant.GeneratedFilesHelper$1.run(GeneratedFilesHelper.java:251)
	at org.openide.util.Mutex.writeAccess(Mutex.java:357)
	at
org.netbeans.spi.project.support.ant.GeneratedFilesHelper.generateBuildScriptFromStylesheet(GeneratedFilesHelper.java:250)
	at org.netbeans.spi.project.support.ant.GeneratedFilesHelper$3.run(GeneratedFilesHelper.java:757)
	at org.netbeans.spi.project.support.ant.GeneratedFilesHelper$3.run(GeneratedFilesHelper.java:754)
	at org.openide.util.Mutex.writeAccess(Mutex.java:357)
	at org.netbeans.spi.project.support.ant.GeneratedFilesHelper.refreshBuildScript(GeneratedFilesHelper.java:753)
	at org.netbeans.modules.java.j2seproject.J2SEProject$ProjectOpenedHookImpl.projectOpened(J2SEProject.java:431)
	at org.netbeans.spi.project.ui.ProjectOpenedHook$1.projectOpened(ProjectOpenedHook.java:59)
	at org.netbeans.spi.project.ui.support.UILookupMergerSupport$OpenHookImpl.projectOpened(UILookupMergerSupport.java:163)
	at org.netbeans.spi.project.ui.ProjectOpenedHook$1.projectOpened(ProjectOpenedHook.java:59)
	at org.netbeans.modules.project.ui.OpenProjectList.notifyOpened(OpenProjectList.java:646)
	at org.netbeans.modules.project.ui.OpenProjectList.doOpenProject(OpenProjectList.java:689)
	at org.netbeans.modules.project.ui.OpenProjectList.doOpen(OpenProjectList.java:337)
	at org.netbeans.modules.project.ui.OpenProjectList.access$100(OpenProjectList.java:87)
	at org.netbeans.modules.project.ui.OpenProjectList$3.run(OpenProjectList.java:237)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:539)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:964)

However, I tried to reproduce and didn't succeed. Maybe there were some special conditions I am not aware of. That
action with ??? shouldn't definitely by in that context menu. Maybe you can find something in the stackrtrace...

-----
Product Version: NetBeans IDE Dev (Build 200707310000) Java: 1.5.0_12; Java HotSpot(TM) Client VM 1.5.0_12-b04 System:
Windows Vista version 6.0 running on x86
Comment 1 mslama 2007-08-01 13:05:26 UTC
It is in projects code. Favorites tab shows actions of underlying nodes and this code is from projects. Please evaluate.
Comment 2 pzajac 2007-08-03 09:56:26 UTC
NPE is not P3.
Comment 3 pzajac 2007-08-03 09:57:08 UTC
I thought NPE is not P4.
Comment 4 Milos Kleint 2007-08-29 06:38:32 UTC
this is a rather artificial usecase -> P4

The NPE comes from opening a project that no longer exists. Somehow it didn't get thrown out of the projectmanager cache
fast enough.  The fact that you cannot reproduce has to do with garbage collection most probably.
Comment 5 Quality Engineering 2009-12-21 06:07:24 UTC
This bug was reported against NetBeans IDE 6.0 or an older release, or against a non-maintained module. NetBeans team does not have enough resources to get to this issue, therefore we are closing the issue as a WONTFIX. If you are interested in providing a patch for this bug, please see our NetFIX guidelines for how to proceed. 

We apologize for any inconvenience.


Thank you.
The NetBeans Team