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 219826 - NPE in HeapWalker when computing first 20 by retained sizes
Summary: NPE in HeapWalker when computing first 20 by retained sizes
Status: RESOLVED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 7.3
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Hurka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-10 13:30 UTC by Jiri Sedlacek
Modified: 2012-10-12 02:07 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
heap dump (.7z) (9.36 MB, application/octet-stream)
2012-10-10 13:37 UTC, Jiri Sedlacek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Sedlacek 2012-10-10 13:30:58 UTC
Open the attached heap dump, click the Find button to compute first 20 objects by retained size. Exception is thrown:

java.lang.NullPointerException
 at org.netbeans.lib.profiler.heap.HprofHeap.computeRetainedSizeByClass(HprofHeap.java:653)
 at org.netbeans.lib.profiler.heap.ClassDump.getRetainedSizeByClass(ClassDump.java:130)
 at org.netbeans.modules.profiler.heapwalk.ClassesListController.getData(ClassesListController.java:181)
 at org.netbeans.modules.profiler.heapwalk.ui.ClassesListControllerUI$17$2.run(ClassesListControllerUI.java:879)
 at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1454)
 at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2036)

Works fine in 7.2.
Comment 1 Jiri Sedlacek 2012-10-10 13:37:41 UTC
Created attachment 125693 [details]
heap dump (.7z)
Comment 2 Tomas Hurka 2012-10-11 09:03:29 UTC
Fixed in profiler-main

changeset:   235589:622670492b01
user:        Tomas Hurka <thurka@netbeans.org>
date:        Thu Oct 11 11:02:22 2012 +0200
summary:     bugfix #219826 Instance.getJavaClass() can return null in broken heap dump
Comment 3 Quality Engineering 2012-10-12 02:07:40 UTC
Integrated into 'main-golden', will be available in build *201210120002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/622670492b01
User: Tomas Hurka <thurka@netbeans.org>
Log: bugfix #219826 Instance.getJavaClass() can return null in broken heap dump