-
Bug
-
Resolution: Cannot Reproduce
-
P3
-
6u12, 7u9
-
Product Version = NetBeans IDE Dev (Build 201206040001) (#38f9dd02b5be)
Operating System = Windows 7 version 6.1 running on amd64
Java; VM; Vendor = 1.7.0_04; Java HotSpot(TM) 64-Bit Server VM 23.0-b21; Oracle Corporation
Runtime = Java(TM) SE Runtime Environment 1.7.0_04-b20
Java Home = C:\Program Files\Java\jdk1.7.0_04\jreProduct Version = NetBeans IDE Dev (Build 201206040001) (#38f9dd02b5be) Operating System = Windows 7 version 6.1 running on amd64 Java; VM; Vendor = 1.7.0_04; Java HotSpot(TM) 64-Bit Server VM 23.0-b21; Oracle Corporation Runtime = Java(TM) SE Runtime Environment 1.7.0_04-b20 Java Home = C:\Program Files\Java\jdk1.7.0_04\jre
ComponentHandler in BasicTreeUI creates and start a Swing timer to update tree size. However the timer isn't stopped when the UI is uninstalled which may lead to NullPointerException, see the stack trace below.
java.lang.NullPointerException
at javax.swing.plaf.basic.BasicTreeUI.updateSize(BasicTreeUI.java:1848)
at javax.swing.plaf.basic.BasicTreeUI$ComponentHandler.actionPerformed(BasicTreeUI.java:2597)
at javax.swing.Timer.fireActionPerformed(Timer.java:312)
at javax.swing.Timer$DoPostEvent.run(Timer.java:244)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:701)
at java.awt.EventQueue.access$000(EventQueue.java:102)
at java.awt.EventQueue$3.run(EventQueue.java:662)
at java.awt.EventQueue$3.run(EventQueue.java:660)
at java.security.AccessController.doPrivileged(AccessController.java:0)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:671)
at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:158)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:244)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:147)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:139)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:97)
See also this NetBeans issue: http://netbeans.org/bugzilla/show_bug.cgi?id=213861
java.lang.NullPointerException
at javax.swing.plaf.basic.BasicTreeUI.updateSize(BasicTreeUI.java:1848)
at javax.swing.plaf.basic.BasicTreeUI$ComponentHandler.actionPerformed(BasicTreeUI.java:2597)
at javax.swing.Timer.fireActionPerformed(Timer.java:312)
at javax.swing.Timer$DoPostEvent.run(Timer.java:244)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:701)
at java.awt.EventQueue.access$000(EventQueue.java:102)
at java.awt.EventQueue$3.run(EventQueue.java:662)
at java.awt.EventQueue$3.run(EventQueue.java:660)
at java.security.AccessController.doPrivileged(AccessController.java:0)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:671)
at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:158)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:244)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:147)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:139)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:97)
See also this NetBeans issue: http://netbeans.org/bugzilla/show_bug.cgi?id=213861