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 2783 - Could not delete an empty package.
Summary: Could not delete an empty package.
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: All All
: P4 normal (vote)
Assignee: Marian Petras
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 1999-07-27 02:04 UTC by Marian Petras
Modified: 2002-07-19 15:23 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 Marian Petras 1999-07-27 02:04:30 UTC
I created a new package (in the Object Browser), switched to the Editing mode,
selected the new package, invoked the popup menu and selected Delete. The
following exception raised:

Exception occurred during event dispatching:
java.lang.NullPointerException:
        at com.netbeans.developer.modules.browser.ExplorerBean$1.propertyChange(ExplorerBean.java:143)
        at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:156)
        at org.openide.explorer.ExplorerManager.setSelectedNodes(ExplorerManager.java:190)
        at org.openide.explorer.ExplorerManager$1.propertyChange(ExplorerManager.java:98)
        at org.openide.nodes.Node.fireOwnPropertyChange(Node.java:585)
        at org.openide.nodes.Node.fireParentNodeChange(Node.java:552)
        at org.openide.nodes.Children$3.run(Children.java:369)

        at org.openide.util.Mutex.doEvent(Mutex.java:455)
        at org.openide.util.Mutex.writeAccess(Mutex.java:240)
        at org.openide.nodes.Children.remove(Children.java:307)
        at org.openide.nodes.Children.remove(Children.java:292)
        at org.openide.nodes.Children$12.run(Children.java:879)
        at org.openide.util.Mutex.doEvent(Mutex.java:455)
        at org.openide.util.Mutex.writeAccess(Mutex.java:240)
        at org.openide.nodes.Children$Map.removeAll(Children.java:860)
        at org.openide.nodes.Children$Map.remove(Children.java:891)
        at com.netbeans.developer.impl.PackageNode$PackageChildren.removePackage(PackageNode.java:204)
        at com.netbeans.developer.impl.PackageNode$3.fileDeleted(PackageNode.java:96)
        at org.openide.filesystems.FileObject$4.dispatch(FileObject.java:273)
        at org.openide.filesystems.FileSystem$EventDispatcher.run(FileSystem.java:513)
        at org.openide.filesystems.FileSystem.exitAtomicAction(FileSystem.java:429)
        at org.openide.filesystems.FileSystem.runAtomicAction(FileSystem.java:411)
        at org.openide.explorer.Explor
Comment 1 Marek Grummich 2000-07-25 09:43:59 UTC
Priority is changed to P4 (normal).