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 225396

Summary: AssertionError at org.netbeans.modules.project.ui.groups.Group.getOpenedDocuments
Product: projects Reporter: mienamoo
Component: Generic InfrastructureAssignee: Milos Kleint <mkleint>
Status: VERIFIED FIXED    
Severity: normal CC: Chiana, markiewb
Priority: P1    
Version: 7.4   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 198062
Attachments: stacktrace
stacktrace
stacktrace
stacktrace

Description mienamoo 2013-01-28 05:56:18 UTC
Build: NetBeans IDE Dev (Build 201301250001)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.6-b04, Java(TM) SE Runtime Environment, 1.7.0_11-b21
OS: Windows 7

User Comments:
mienamoo: Removing a group while there are no projects or open documents still in the group.




Stacktrace: 
java.lang.AssertionError
   at org.netbeans.modules.project.ui.groups.Group.getOpenedDocuments(Group.java:284)
   at org.netbeans.modules.project.ui.groups.Group.open(Group.java:519)
   at org.netbeans.modules.project.ui.groups.Group.setActiveGroup(Group.java:190)
   at org.netbeans.modules.project.ui.groups.Group.destroy(Group.java:554)
   at org.netbeans.modules.project.ui.groups.GroupsMenu$Menu$6.actionPerformed(GroupsMenu.java:270)
   at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2018)
Comment 1 mienamoo 2013-01-28 05:56:20 UTC
Created attachment 130707 [details]
stacktrace
Comment 2 mienamoo 2013-01-28 06:00:29 UTC
The same thing happens when there is at least one project and one file open in the group.

This is a regression that makes it impossible to remove project groups from within the IDE. Thus I am marking it as a P1.
Comment 3 mienamoo 2013-01-28 06:03:19 UTC
Steps to reproduce:

1. Create a new project group.
2. (Optional) Create a new Java application.
3. Try to remove the project group.
Comment 4 Chiana 2013-01-28 06:55:44 UTC
Created attachment 130708 [details]
stacktrace

Testing project group
Comment 5 Chiana 2013-01-28 07:01:44 UTC
Created attachment 130709 [details]
stacktrace

Trying again for #225396 reproducible
Comment 6 Chiana 2013-01-28 07:07:44 UTC
Created attachment 130710 [details]
stacktrace

Can't be removed after restarting the IDE either.
Comment 7 Milos Kleint 2013-01-28 07:42:46 UTC
only applies to dev, not 7.3
Comment 8 Milos Kleint 2013-01-28 08:19:49 UTC
http://hg.netbeans.org/core-main/rev/119ac99e0b5b
Comment 9 Quality Engineering 2013-01-29 03:28:43 UTC
Integrated into 'main-golden', will be available in build *201301290001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/119ac99e0b5b
User: Milos Kleint <mkleint@netbeans.org>
Log: #225396 always close documents off AWT.
Comment 10 mienamoo 2013-01-31 07:33:42 UTC
Verified with build 201301310001. Thanks for a very fast fix!