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.
Build: NetBeans IDE Dev (Build 201211060001) VM: Java HotSpot(TM) 64-Bit Server VM, 23.5-b02, Java(TM) SE Runtime Environment, 1.7.0_09-b05 OS: Windows 7 Stacktrace: java.lang.NullPointerException at javax.swing.plaf.basic.BasicTreeUI$Actions.page(BasicTreeUI.java:4470) at javax.swing.plaf.basic.BasicTreeUI$Actions.actionPerformed(BasicTreeUI.java:4046) at javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1664) at javax.swing.JComponent.processKeyBinding(JComponent.java:2879) at javax.swing.JComponent.processKeyBindings(JComponent.java:2926) at javax.swing.JComponent.processKeyEvent(JComponent.java:2842)
Created attachment 127752 [details] stacktrace
What is on line BasicTreeUI.java:4470? Look at http://hg.openjdk.java.net/jdk7u/jdk7u/jdk/file/jdk7u9-b05/src/share/classes/javax/swing/plaf/basic/BasicTreeUI.java it seems there is: 4468 Rectangle newRect = ui.getPathBounds(tree, newPath); 4469 4470 newRect.x = visRect.x; 4471 newRect.width = visRect.width; 4472 if(direction == -1) { 4473 newRect.height = visRect.height; The simplest fix would be to modify 4470 to: if (newRect == null) return;
Possible fix of the NPE in OpenJDK is being discussed at http://mail.openjdk.java.net/pipermail/swing-dev/2012-November/002382.html