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.
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)
Created attachment 80595 [details] stacktrace
Milane is there a way how to detect, that Nb project was deleted in order to remove it from kenai recent projects? Thanks
org.netbeans.spi.project.support.ProjectOperations.notifyDeleted, but it notifies only about projects deleted from IDE.
If I understand it well, Milane, this API notifies only project providers, not project API users...
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.
47970a5fe900
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
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)