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

Summary: NullPointerException at org.netbeans.modules.profiler.ProfilerControlPanel2$SnapshotsPanel.isOpen
Product: profiler Reporter: ehsavoie <ehsavoie>
Component: BaseAssignee: Jiri Sedlacek <jis>
Status: RESOLVED FIXED    
Severity: normal CC: ehsavoie
Priority: P3    
Version: 7.4   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 200757
Attachments: stacktrace
stacktrace

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.