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.
When trying to open the context menu of a plugin project in the Project View, I get an NPE. When I first created the project and for some time after I was able to open the context menu, but now I can't. I don't know what changed. I am able to open the context menu for project in the Files View. Attached is the stack trace and a zip file of the project.
Created attachment 26146 [details] NPE stack trace
Created attachment 26147 [details] zip file of plugin project
=>apisupport/project.
Probably your module is a suite component which suite doesn't have set a correct platform -> so as a workaround set a correct platform for your suite. But definitely a bug, suite platform should be checked.
Can certainly check for that, but as Martin said it probably means your suite project is somehow corrupt anyway.
yes, I restored to a prior version of my suite and the problem cleared up.
With other changes: committed Up-To-Date 1.12 apisupport/project/src/org/netbeans/modules/apisupport/project/ui/ModuleActions.java
I cannot open the attached project in netbeans ide. NPE was thrown.
Created attachment 27128 [details] NPE stacktrace
very similar problem like in issue 69029. in this case project is suite-component, but without suite: --> it's suite.dir points to nowhere --> cannot resolve user.properties.file (which is defined in a suite) --> cannot resolve nbplatform.some_platform_id.netbeans.dest.dir --> netbeans.dest.dir in property evaluator is not resolved --> nbmoduleproject.getplatform(boolean fallback) return null --> nbmoduleproject.getmodulelist() throws npe probably the easiest would be just throwing an ioexception from within nbmoduleproject.getmodulelist() if plaf == null until we have some stronger resolving techniques. in this case required project list would be just empty and project opened and... it would fail later :). but presuambly in much more friendly manner.
Fixed w/ issue #69097. BTW for the future please open fresh bug reports for new bugs, as this I think was. committed * Up-To-Date 1.132 apisupport/project/src/org/netbeans/modules/apisupport/project/NbModuleProject.java committed * Up-To-Date 1.5 apisupport/project/test/unit/src/org/netbeans/modules/apisupport/project/BrokenPlatformReferenceTest.java committed * Up-To-Date 1.28 apisupport/project/test/unit/src/org/netbeans/modules/apisupport/project/TestBase.java