Svatopluk Dedic created NETBEANS-1049:
-----------------------------------------

             Summary: Windows group throws NPE on close for not persistable top 
component
                 Key: NETBEANS-1049
                 URL: https://issues.apache.org/jira/browse/NETBEANS-1049
             Project: NetBeans
          Issue Type: Bug
          Components: platform - Window System
            Reporter: Svatopluk Dedic
            Assignee: Svatopluk Dedic


I admit it is somewhat a corner case, but – I have a TopComponent whose 
*getPersistenceType* returns *PERSISTENCE_NEVER* and so a corresponding config 
file is never created on config fs. If the user closes the document group which 
contains such an editor, the core throws a NPE:
{noformat}
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)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)

{noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to