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 270932

Summary: NPE working with Document Groups
Product: platform Reporter: Svata Dedic <sdedic>
Component: Window SystemAssignee: Stanislav Aubrecht <saubrecht>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: Dev   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

Description Svata Dedic 2017-06-22 11:44:43 UTC
I have a view in "editor"-like mode which declares itself as non-persistent. When doing Window | Document Groups | <select any group>, NPE is thrown.
The view was not saved (since it is not persistent), but group manager impl assumes the .settings file is always created.

java.lang.NullPointerException
	at org.netbeans.core.windows.documentgroup.GroupsManager.closeGroup(GroupsManager.java:376)
	at org.netbeans.core.windows.documentgroup.DocumentGroupImpl.close(DocumentGroupImpl.java:70)
	at org.netbeans.core.windows.documentgroup.GroupsManager.openGroup(GroupsManager.java:172)
	at org.netbeans.core.windows.documentgroup.DocumentGroupImpl.open(DocumentGroupImpl.java:66)
	at org.netbeans.core.windows.documentgroup.GroupsMenuAction$OpenGroupAction$1.run(GroupsMenuAction.java:167)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)