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 163255 - NullPointerException at org.netbeans.api.project.ProjectUtils.getInformation
Summary: NullPointerException at org.netbeans.api.project.ProjectUtils.getInformation
Status: VERIFIED FIXED
Alias: None
Product: connecteddeveloper
Classification: Unclassified
Component: Team Framework (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jan Becicka
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-21 14:11 UTC by Jaromir Uhrik
Modified: 2009-06-04 14:51 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 149887


Attachments
stacktrace (3.07 KB, text/plain)
2009-04-21 14:12 UTC, Jaromir Uhrik
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jaromir Uhrik 2009-04-21 14:11:55 UTC
Build: NetBeans IDE 6.7 Beta (Build 200904192254)
VM: Java HotSpot(TM) Client VM, 1.5.0_16-133, Java(TM) 2 Runtime Environment, Standard Edition, 1.5.0_16-b06-284
OS: Mac OS X, 10.5.6, i386

User Comments:
juhrik: -in Kenai window push "get" which is in the sources node
-when the project opens in the project view delete it
-->> the recent project still resides in the Kenai project as a link to nonexisting project. When the user click on this link the exception appears...



Stacktrace: 
java.lang.NullPointerException
        at org.netbeans.api.project.ProjectUtils.getInformation(ProjectUtils.java:83)
        at org.netbeans.modules.kenai.ui.SourceAccessorImpl$1.selectProject(SourceAccessorImpl.java:151)
        at org.netbeans.modules.kenai.ui.SourceAccessorImpl$1.actionPerformed(SourceAccessorImpl.java:133)
        at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1882)
        at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2202)
        at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
Comment 1 Jaromir Uhrik 2009-04-21 14:12:04 UTC
Created attachment 80595 [details]
stacktrace
Comment 2 Jan Becicka 2009-04-29 14:50:16 UTC
Milane is there a way how to detect, that Nb project was deleted in order to remove it from kenai recent projects? Thanks
Comment 3 Milan Kubec 2009-04-30 08:37:29 UTC
org.netbeans.spi.project.support.ProjectOperations.notifyDeleted, but it notifies only about projects deleted from IDE.
Comment 4 Jan Becicka 2009-04-30 10:21:22 UTC
If I understand it well, Milane, this API notifies only project providers, not project API users...
Comment 5 Milan Kubec 2009-04-30 11:49:26 UTC
I think that you might extend lookup of interested project with own implementation of DeleteOperationImplementation, but
it'd have to be done for all projects. Otherwise there is probably only listening on filesystem.
Comment 6 Jan Becicka 2009-04-30 13:05:08 UTC
47970a5fe900
Comment 7 Quality Engineering 2009-05-01 08:13:32 UTC
Integrated into 'main-golden', will be available in build *200905010201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/47970a5fe900
User: Jan Becicka <jbecicka@netbeans.org>
Log: #163255: NullPointerException at org.netbeans.api.project.ProjectUtils.getInformation
Comment 8 Petr Dvorak 2009-05-27 14:48:18 UTC
Verified, works as expected in

Product Version: NetBeans IDE 6.7 RC1 (Build 200905270001)
Java: 1.6.0_13; Java HotSpot(TM) Client VM 11.3-b02
System: Linux version 2.6.28-11-generic running on i386; UTF-8; en_US (nb)