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 236480 - NullPointerException at org.netbeans.modules.profiler.ProfilerControlPanel2$SnapshotsPanel.isOpen
Summary: NullPointerException at org.netbeans.modules.profiler.ProfilerControlPanel2$S...
Status: RESOLVED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 7.4
Hardware: All All
: P3 normal (vote)
Assignee: Jiri Sedlacek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-27 14:43 UTC by ehsavoie
Modified: 2013-11-14 16:16 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 200757


Attachments
stacktrace (5.25 KB, text/plain)
2013-09-27 14:43 UTC, ehsavoie
Details
stacktrace (5.25 KB, text/plain)
2013-11-14 16:00 UTC, ehsavoie
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ehsavoie 2013-09-27 14:43:01 UTC
Build: NetBeans IDE Dev (Build 201309250002)
VM: Java HotSpot(TM) 64-Bit Server VM, 24.0-b56, Java(TM) SE Runtime Environment, 1.7.0_40-b43
OS: Linux

User Comments:
GUEST: I deleted a heap dump. This doesn't seem to work and I again deleted the same heap dump. Later the NPE arised.

ehsavoie: Deleting a thread dump




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.profiler.ProfilerControlPanel2$SnapshotsPanel.isOpen(ProfilerControlPanel2.java:1229)
   at org.netbeans.modules.profiler.ProfilerControlPanel2$SnapshotsPanel.access$1000(ProfilerControlPanel2.java:941)
   at org.netbeans.modules.profiler.ProfilerControlPanel2$SnapshotsPanel$3.getListCellRendererComponent(ProfilerControlPanel2.java:1106)
   at javax.swing.plaf.basic.BasicListUI.paintCell(BasicListUI.java:208)
   at javax.swing.plaf.basic.BasicListUI.paintImpl(BasicListUI.java:317)
   at javax.swing.plaf.basic.BasicListUI.paint(BasicListUI.java:240)
Comment 1 ehsavoie 2013-09-27 14:43:03 UTC
Created attachment 140565 [details]
stacktrace
Comment 2 ehsavoie 2013-11-14 16:00:35 UTC
Created attachment 142189 [details]
stacktrace

Deleting heap dumps
Comment 3 Jiri Sedlacek 2013-11-14 16:16:10 UTC
Deleting heap dumps (open or previously closed) is kind of tricky as some data are still being memory-mapped.

Implemented a fix to not throw NPEs in this case: http://hg.netbeans.org/profiler-main/rev/5e917f2464d2.