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 60144 - Show Allocation Stacktraces can throw NPE
Summary: Show Allocation Stacktraces can throw NPE
Status: CLOSED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 4.x
Hardware: All Linux
: P3 blocker (vote)
Assignee: iformanek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-16 13:41 UTC by ehucka
Modified: 2006-03-24 13:02 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 2005-06-16 13:41:58 UTC
build 050616

Always I invoke "Show allocations Stack Traces" action on some result of memory
profiling the NPE is thrown. It doesn't depend on state of "Record Strack Trace
for Allocation" option - "Show Allocations ..." is always enabled.


java.lang.NullPointerException
com.sun.tools.profiler.results.memory.RuntimeObjLivenessTermCCTNode.calculateTotalNLiveObjects(RuntimeObjLivenessTermCCTNode.java:102)
com.sun.tools.profiler.results.memory.PresoObjLivenessCCTNode.generateMirrorNode(PresoObjLivenessCCTNode.java:72)
com.sun.tools.profiler.results.memory.PresoObjLivenessCCTNode.createPresentationCCT(PresoObjLivenessCCTNode.java:60)
com.sun.tools.profiler.results.memory.LivenessMemoryResultsSnapshot.createPresentationCCT(LivenessMemoryResultsSnapshot.java:218)
com.sun.tools.profiler.results.memory.MemoryResultsSnapshot.createPresentationCCT(MemoryResultsSnapshot.java:180)
com.sun.tools.profiler.results.memory.MemoryCCTManager.<init>(MemoryCCTManager.java:28)
com.sun.tools.profiler.ui.memory.SnapshotReverseMemCallGraphPanel.setClassId(SnapshotReverseMemCallGraphPanel.java:38)
org.netbeans.modules.profiler.MemorySnapshotPanel.setReverseCallGraphClass(MemorySnapshotPanel.java:94)
org.netbeans.modules.profiler.MemorySnapshotPanel.access$100(MemorySnapshotPanel.java:35)
org.netbeans.modules.profiler.MemorySnapshotPanel$SnapshotActionsHandler.showStacksForClass(MemorySnapshotPanel.java:101)
com.sun.tools.profiler.ui.memory.SnapshotLivenessResultsPanel.actionPerformed(SnapshotLivenessResultsPanel.java:85)
Comment 1 iformanek 2005-06-16 14:39:09 UTC
Self assign
Comment 2 iformanek 2005-06-18 17:35:25 UTC
This should happen no more.
Comment 3 ehucka 2005-06-20 14:39:48 UTC
build 050620

I still see the exception there.
Comment 4 iformanek 2005-06-22 16:05:01 UTC
Now the menu item for Show allocations is not present if the allocation stack 
traces were not recorder.

Fixed the cause of the NPE.
Comment 5 ehucka 2005-07-11 10:03:46 UTC
verified in 050711