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 19949 - Delete file (outside of IDE) that is open in editor causes null pointer.
Summary: Delete file (outside of IDE) that is open in editor causes null pointer.
Status: CLOSED FIXED
Alias: None
Product: utilities
Classification: Unclassified
Component: Properties (show other bugs)
Version: 3.x
Hardware: PC Other
: P3 blocker (vote)
Assignee: issues@utilities
URL:
Keywords:
: 21423 21500 22043 23838 23863 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-01-30 15:32 UTC by Mark Gruener
Modified: 2003-07-01 14:21 UTC (History)
1 user (show)

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 Mark Gruener 2002-01-30 15:32:26 UTC
I had a properties file open in the NetBeans editor.
I deleted it with the NT file manager.
Went back to NetBeans and got a null pointer...

Wed Jan 30 09:50:01 EST 2002: java.lang.NullPointerException: <no message>
java.lang.NullPointerException
        at 
org.netbeans.modules.properties.PropertiesOpen$PropertiesCloneableTopComponent.g
etUndoRedo(PropertiesOpen.java:687)
        at org.openide.actions.UndoAction.getUndoRedo(UndoAction.java:91)
        at org.openide.actions.UndoAction$Listener.propertyChange
(UndoAction.java:139)
        at org.openide.util.WeakListener$PropertyChange.propertyChange
(WeakListener.java:325)
        at java.beans.PropertyChangeSupport.firePropertyChange
(PropertyChangeSupport.java:152)
        at org.netbeans.core.windows.RegistryImpl.topComponentActivated
(RegistryImpl.java:199)
        at org.netbeans.core.windows.WindowManagerImpl.activateComponent
(WindowManagerImpl.java:700)
        at 
org.netbeans.core.windows.frames.DefaultContainerImpl.doActivateComponent
(DefaultContainerImpl.java:558)
        at 
org.netbeans.core.windows.frames.DefaultContainerImpl.reactivateSelectedComponen
t(DefaultContainerImpl.java:732)
        at org.netbeans.core.windows.frames.DefaultContainerImpl$2.run
(DefaultContainerImpl.java:891)
        at org.netbeans.core.windows.frames.DefaultContainerImpl$4.run
(DefaultContainerImpl.java:906)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:154)
[catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:337)
        at java.awt.EventDispatchThread.pumpOneEventForHierarchy
(EventDispatchThread.java:131)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy
(EventDispatchThread.java:98)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:85
Comment 1 Jan Lahoda 2002-01-30 17:14:30 UTC
This seems to be problem of properties files support (and therefore
properties module). Reassigning to it.
Comment 2 Martin Roskanin 2002-02-05 10:21:02 UTC
fixed in [maintrunk]

/cvs/properties/src/org/netbeans/modules/properties/PropertiesOpen.java,v  <--  PropertiesOpen.java
new revision: 1.53; previous revision: 1.52
Comment 3 Martin Roskanin 2002-02-26 09:37:06 UTC
This bug is connected with
http://www.netbeans.org/issues/show_bug.cgi?id=19842

Adding 3.3.2_CANDIDATE keyword.

Diff:

http://properties.netbeans.org/source/browse/properties/src/org/netbea
ns/modules/properties/PropertiesOpen.java.diff?r1=1.52&r2=1.53

Comment 4 Martin Roskanin 2002-03-12 17:02:26 UTC
*** Issue 21500 has been marked as a duplicate of this issue. ***
Comment 5 Ben Hutchison 2002-03-13 10:12:17 UTC
This issue is really hurting me! Please provide a patch or workaround 
ASAP.

Because of this issue, I cannot currently:
1. Change projects (*most important*)
2. Shutdown IDE
3. Close "infected" properties editor tabs

1. in particular is critical functionality.
Comment 6 Martin Roskanin 2002-03-13 10:29:02 UTC
Please, use a patch attached in the issue #19842.

I am sorry, that I didn't let you know about the patch yesterday.

Thanks,
Mato
Comment 7 Martin Roskanin 2002-03-26 13:41:22 UTC
fixed in [orion_fcs]

/cvs/properties/src/org/netbeans/modules/properties/PropertiesOpen.jav
a,v  <--  PropertiesOpen.java
new revision: 1.47.6.2.4.2; previous revision: 1.47.6.2.4.1
Comment 8 Martin Roskanin 2002-04-04 09:17:03 UTC
*** Issue 22043 has been marked as a duplicate of this issue. ***
Comment 9 Martin Roskanin 2002-04-13 10:07:06 UTC
*** Issue 21423 has been marked as a duplicate of this issue. ***
Comment 10 Jan Chalupa 2002-05-22 16:47:18 UTC
*** Issue 23838 has been marked as a duplicate of this issue. ***
Comment 11 Martin Roskanin 2002-05-28 09:33:03 UTC
*** Issue 23863 has been marked as a duplicate of this issue. ***
Comment 12 pfelenda 2002-10-18 15:29:57 UTC
Verified in dev build [200210160100]. It works properly.
Comment 13 Quality Engineering 2003-07-01 14:21:08 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.