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 103734 - NPE on find in Subtree
Summary: NPE on find in Subtree
Status: VERIFIED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: J Bachorik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-11 13:06 UTC by Alexander Kouznetsov
Modified: 2007-07-05 16:26 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Exception (3.21 KB, text/plain)
2007-05-11 13:07 UTC, Alexander Kouznetsov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Kouznetsov 2007-05-11 13:06:59 UTC
Profiler 070509
NetBeans IDE Dev (Build 070509)
1.6.0; Java HotSpot(TM) Client VM 1.6.0-b105
Windows XP version 5.1 running on x86
ru_RU (nb); Cp1251

Steps to reproduce:
- Open snapshot
http://www.netbeans.org/nonav/issues/showattachment.cgi/40613/cpu13.nps
- Invoke context menu for javax.swing.JFrame.<init>() element and select Show
subtree
- Click Find button
- Enter "cursor"
- Press Find Next button several times
- RESULT: NPE is thrown
java.lang.NullPointerException
	at javax.swing.JComponent.scrollRectToVisible(JComponent.java:3055)
	at
com.sun.tools.profiler.ui.components.JTreeTable.selectFoundNode(JTreeTable.java:590)
	at com.sun.tools.profiler.ui.components.JTreeTable.doFindNext(JTreeTable.java:535)
...
Comment 1 Alexander Kouznetsov 2007-05-11 13:07:41 UTC
Created attachment 42314 [details]
Exception
Comment 2 J Bachorik 2007-06-06 14:54:01 UTC
fixed in trunk - the find action was trying to locate a matching node not
belonging to the selected subtree. now this  situation is handled correctly and
the node is treated as non-matching
Comment 3 Alexander Kouznetsov 2007-07-05 16:26:19 UTC
Verified with

Profiler 1.2 070703
Product Version: NetBeans IDE Dev (Build 200707031200) 
Java: 1.6.0; Java HotSpot(TM) Client VM 1.6.0-b105 
System: Windows XP version 5.1 running on x86; Cp1251; ru_RU (nb)