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 196273 - NullPointerException at com.sun.java.swing.plaf.windows.WindowsTreeUI.ensureRowsAreVisible
Summary: NullPointerException at com.sun.java.swing.plaf.windows.WindowsTreeUI.ensureR...
Status: RESOLVED WONTFIX
Alias: None
Product: platform
Classification: Unclassified
Component: JDK Problems (show other bugs)
Version: 7.0
Hardware: All All
: P3 normal (vote)
Assignee: Antonin Nebuzelsky
URL:
Keywords:
: 193022 197197 199019 213665 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-03-04 06:51 UTC by Erno Mononen
Modified: 2012-06-08 12:57 UTC (History)
8 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 177243


Attachments
stacktrace (2.26 KB, text/plain)
2011-03-04 06:51 UTC, Erno Mononen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Erno Mononen 2011-03-04 06:51:52 UTC
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)
Comment 1 Erno Mononen 2011-03-04 06:51:56 UTC
Created attachment 106695 [details]
stacktrace
Comment 2 Jaroslav Tulach 2011-03-06 06:54:27 UTC
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.
Comment 3 Marian Mirilovic 2011-06-01 07:41:47 UTC
*** Bug 199019 has been marked as a duplicate of this bug. ***
Comment 4 Antonin Nebuzelsky 2011-06-01 10:57:34 UTC
Reopened JDK bug 4909150 with a reference to the exception reports gathered here. Closing wontfix on our side.
Comment 5 Marian Mirilovic 2011-06-09 10:17:57 UTC
*** Bug 193022 has been marked as a duplicate of this bug. ***
Comment 6 Marian Mirilovic 2011-06-09 10:18:09 UTC
*** Bug 197197 has been marked as a duplicate of this bug. ***
Comment 7 Marian Mirilovic 2011-06-09 10:19:45 UTC
JDk bug 4909150  is reported as P4 .. we have almost 60 dups ... so might be good to increase priority
Comment 8 Antonin Nebuzelsky 2011-06-15 15:58:06 UTC
Raised priority of the JDK bug to P3.
Comment 9 Marian Mirilovic 2012-06-08 12:54:26 UTC
*** Bug 213665 has been marked as a duplicate of this bug. ***