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 10536 - NPE at UndoRedo$Manager
Summary: NPE at UndoRedo$Manager
Status: CLOSED INVALID
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 3.x
Hardware: PC Linux
: P4 blocker (vote)
Assignee: Peter Zavadsky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-03-21 13:50 UTC by _ pkuzel
Modified: 2008-12-22 19:55 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 _ pkuzel 2001-03-21 13:50:06 UTC
It appeared while double clicking on a class in object browser (it opens
editor).
Probably a race condition since it is not reproduceable.

Wed Mar 21 14:42:13 GMT+01:00 2001java.lang.NullPointerException: null
java.lang.NullPointerException
        at org.openide.awt.UndoRedo$Manager.canUndo(UndoRedo.java:148)
        at org.openide.actions.UndoAction$1.run(UndoAction.java:80)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:154)
[catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:331)
        at
java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java:103)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:84)
Comment 1 Jaroslav Tulach 2001-03-28 07:25:24 UTC
The UndroRedo is tightly connected to editorsupport. Recently was upgraded to
use RequestProcessor thread. I suspect there is a missing synchronization in the
canUndo method.
Comment 2 Jan Chalupa 2001-05-06 08:12:36 UTC
Target milestone -> 3.3
Comment 3 mslama 2001-10-15 11:33:24 UTC
Reassign to new owner of openide/editor
Comment 4 Peter Zavadsky 2001-10-18 15:42:40 UTC
Is now invalid. 
Fixed already a time ago.
The line throwing the NPE is:
 task.waitFinished(),
see rev [1.15] of org.openide.awt.UndoRedo.java. 

And the fix is, setting task field to Task.EMPTY at init see:
openide/../openide/awt/UndoRedo.java [1.17]
Comment 5 Quality Engineering 2003-07-01 16:02:17 UTC
Resolved for 3.4.x or earlier, no new info since then -> verified
Comment 6 Quality Engineering 2003-07-01 16:22:06 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.