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 224020

Summary: AssertionError at org.netbeans.modules.apisupport.project.ui.LibrariesNode$OpenProjectAction.performAction
Product: apisupport Reporter: mienamoo
Component: ProjectAssignee: Martin Kozeny <mkozeny>
Status: RESOLVED WORKSFORME    
Severity: normal    
Priority: P4    
Version: 7.3   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 196745
Attachments: stacktrace

Description mienamoo 2012-12-19 09:47:55 UTC
Build: NetBeans IDE Dev (Build 201212140001)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.5-b02, Java(TM) SE Runtime Environment, 1.7.0_09-b05
OS: Windows 7

User Comments:
mienamoo: (I had a source folder associated with the NetBeans Platform I am working with, and then removed it.) This exception happened when double clicking on a module such as UI Utilities API in the Libraries list in projects view, for a standalone NetBeans Module project.




Stacktrace: 
java.lang.AssertionError
   at org.netbeans.modules.apisupport.project.ui.LibrariesNode$OpenProjectAction.performAction(LibrariesNode.java:568)
   at org.openide.util.actions.NodeAction$DelegateAction$1.run(NodeAction.java:586)
   at org.openide.util.actions.ActionInvoker$1.run(ActionInvoker.java:95)
   at org.openide.util.actions.ActionInvoker.doPerformAction(ActionInvoker.java:116)
   at org.openide.util.actions.ActionInvoker.invokeAction(ActionInvoker.java:99)
   at org.openide.util.actions.NodeAction$DelegateAction.actionPerformed(NodeAction.java:583)
Comment 1 mienamoo 2012-12-19 09:47:57 UTC
Created attachment 129531 [details]
stacktrace
Comment 2 Martin Kozeny 2013-07-10 09:24:19 UTC
There is an assertion on existence of project folder. Actually I don't understand the steps to reproduce. Could you please describe it more precisely? Thanks.
Comment 3 mienamoo 2013-07-10 09:42:08 UTC
Here are the steps:

1. Add a different platform to the platform manager (Tools > NetBeans Platforms), specifying the source folder for the platform too.
2. Now create a new Ant-based standalone NetBeans module project.
3. In the project properties, specify that the project uses the newly added platform.
4. Add a dependency to some module from the platform, e.g. Dialogs API.
5. If you double-click on the node under the Libraries node now, the project from the source folder will be opened in the IDE.
6. Close it again before proceeding.
7. Go to the platform manager and delete the platform added in step 1.
8. Now double click on the dependency node of the module again - the exception happens.

I know that this is a corner case, but I have encountered it at least the once. :)
Comment 4 Martin Kozeny 2013-07-11 08:59:49 UTC
Before step 8. there should be removing sources of dependent project. Maybe best solution would be nodes refreshing.
Comment 5 Quality Engineering 2015-02-04 03:22:21 UTC
Reported for 7.3.x or earlier, no new info since then -> closing as worksforme, please reopen in case you see it.