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 101147 - [heapwalk] NPE after Show only subclasses
Summary: [heapwalk] NPE after Show only subclasses
Status: VERIFIED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Martin Entlicher
URL:
Keywords:
: 101374 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-04-16 14:31 UTC by ehucka
Modified: 2007-04-20 09:27 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ehucka 2007-04-16 14:31:28 UTC
NetBeans IDE Dev (Build 070416)
1.6.0; Java HotSpot(TM) Client VM 1.6.0-b105
Linux version 2.6.16-1.2122_FC5 running on i386

Select e.g. java.lang.String in Classes view and invoke 'Show only subclasses'
on it.

java.lang.NullPointerException
        at
org.netbeans.modules.profiler.heapwalk.ClassesListController.getSubclasses(ClassesListController.java:128)
        at
org.netbeans.modules.profiler.heapwalk.ClassesListController.getFilteredSortedClasses(ClassesListController.java:76)
        at
org.netbeans.modules.profiler.heapwalk.ui.ClassesListControllerUI.initData(ClassesListControllerUI.java:164)
        at
org.netbeans.modules.profiler.heapwalk.ui.ClassesListControllerUI.access$500(ClassesListControllerUI.java:55)
        at
org.netbeans.modules.profiler.heapwalk.ui.ClassesListControllerUI$2$1.doInBackground(ClassesListControllerUI.java:375)
        at com.sun.tools.profiler.ui.SwingWorker$2.run(SwingWorker.java:101)
        at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:539)
Comment 1 Martin Entlicher 2007-04-17 14:43:53 UTC
*** Issue 101374 has been marked as a duplicate of this issue. ***
Comment 2 Martin Entlicher 2007-04-18 15:41:29 UTC
Reproduced.
Comment 3 Martin Entlicher 2007-04-18 15:58:23 UTC
Fixed in trunk. However, we need to add the retrieval of subclasses into the
JPDA API to fix that correctly.

/cvs/debuggerjpda/profiler/heapwalk/src/org/netbeans/modules/debugger/jpda/heapwalk/JavaClassImpl.java,v
 <--  JavaClassImpl.java
new revision: 1.4; previous revision: 1.3
Comment 4 Martin Entlicher 2007-04-18 16:01:45 UTC
See issue #101609.
Comment 5 ehucka 2007-04-20 09:27:09 UTC
verified