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 - NPE working with Document Groups
Summary: NPE working with Document Groups
Status: NEW
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: Dev
Hardware: PC Linux
: P3 normal (vote)
Assignee: Stanislav Aubrecht
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-06-22 11:44 UTC by Svata Dedic
Modified: 2017-06-22 11:44 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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)