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.
This bug was originally marked as duplicate of bug 191781, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related. Build: NetBeans IDE 7.0 Beta 2 (Build 201102140001) VM: Java HotSpot(TM) 64-Bit Server VM, 17.1-b03, Java(TM) SE Runtime Environment, 1.6.0_22-b04 OS: Windows 7 User Comments: emononen: Expanded a project node in the project view GUEST: Expanding a folder in Files explorer Stacktrace: java.lang.NullPointerException at com.sun.java.swing.plaf.windows.WindowsTreeUI.ensureRowsAreVisible(WindowsTreeUI.java:74) at javax.swing.plaf.basic.BasicTreeUI.toggleExpandState(BasicTreeUI.java:2208) at javax.swing.plaf.basic.BasicTreeUI$Actions.traverse(BasicTreeUI.java:4304) at javax.swing.plaf.basic.BasicTreeUI$Actions.actionPerformed(BasicTreeUI.java:3956) at javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1633) at javax.swing.JComponent.processKeyBinding(JComponent.java:2851)
Created attachment 106695 [details] stacktrace
Simple fix in WindowTreeUI.java: for(int counter = beginRow + 1; counter <= endRow; counter++) { testRect = getPathBounds(tree, getPathForRow(tree, counter)); if (testRect == null) continue; // <-- this is the new line with test if((testRect.y + testRect.height) > maxY) counter = endRow; } I don't have any idea how to fix this in our code.
*** Bug 199019 has been marked as a duplicate of this bug. ***
Reopened JDK bug 4909150 with a reference to the exception reports gathered here. Closing wontfix on our side.
*** Bug 193022 has been marked as a duplicate of this bug. ***
*** Bug 197197 has been marked as a duplicate of this bug. ***
JDk bug 4909150 is reported as P4 .. we have almost 60 dups ... so might be good to increase priority
Raised priority of the JDK bug to P3.
*** Bug 213665 has been marked as a duplicate of this bug. ***