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.
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)
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.
Target milestone -> 3.3
Reassign to new owner of openide/editor
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]
Resolved for 3.4.x or earlier, no new info since then -> verified
Resolved for 3.4.x or earlier, no new info since then -> closing.