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 189588 - [69cat] NullPointerException at com.sun.java.swing.plaf.windows.WindowsTreeUI.ensureRowsAreVisible
Summary: [69cat] NullPointerException at com.sun.java.swing.plaf.windows.WindowsTreeUI...
Status: RESOLVED DUPLICATE of bug 191781
Alias: None
Product: platform
Classification: Unclassified
Component: Explorer (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: Jaroslav Tulach
URL:
Keywords:
: 187950 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-08-17 11:47 UTC by stefan79
Modified: 2010-11-11 08:13 UTC (History)
9 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 171984


Attachments
stacktrace (2.19 KB, text/plain)
2010-08-17 11:47 UTC, stefan79
Details

Note You need to log in before you can comment on or make changes to this bug.
Description stefan79 2010-08-17 11:47:19 UTC
This bug was originally marked as duplicate of bug 166511, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 6.9.1 (Build 201007282301)
VM: Java HotSpot(TM) 64-Bit Server VM, 17.0-b17, Java(TM) SE Runtime Environment, 1.6.0_21-b07
OS: Windows 7

User Comments:
stefan79: Expand in Project-View.

GUEST: I add some new dependecies to teh pom.xml and the project window's view became crazy.

GUEST: Don't remember

earlGrey: Only switched tab from "Projects" to "Services".




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.handleExpandControlClick(BasicTreeUI.java:2191)
   at javax.swing.plaf.basic.BasicTreeUI.checkForClickInExpandControl(BasicTreeUI.java:2149)
   at javax.swing.plaf.basic.BasicTreeUI$Handler.handleSelection(BasicTreeUI.java:3511)
   at javax.swing.plaf.basic.BasicTreeUI$Handler.mousePressedDND(BasicTreeUI.java:3497)
Comment 1 stefan79 2010-08-17 11:47:28 UTC
Created attachment 101445 [details]
stacktrace
Comment 2 Jaroslav Tulach 2010-09-01 11:57:25 UTC
testRect can be null when touching testRect.y. Looks like a JDK bug:

testRect = getPathBounds(tree, getPathForRow(tree, counter));
if((testRect.y + testRect.height) > maxY)
  counter = endRow;
Comment 3 Jaroslav Tulach 2010-11-11 08:05:31 UTC
*** Bug 187950 has been marked as a duplicate of this bug. ***
Comment 4 Jaroslav Tulach 2010-11-11 08:13:12 UTC
Let's pretend this bug is caused by non-EDT changes of the tree hierarchy as fix in bug 191781.

*** This bug has been marked as a duplicate of bug 191781 ***