Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-1049

Windows group throws NPE on close for not persistable top component

    XMLWordPrintableJSON

Details

    Description

      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:

      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)
      
      

      Attachments

        Issue Links

          Activity

            People

              sdedic Svatopluk Dedic
              sdedic Svatopluk Dedic
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m