Bugfix #236480, do not fail when processing zombie heap dump jdev_aspen
authorJiri Sedlacek <jis@netbeans.org>
Thu, 14 Nov 2013 17:12:10 +0100
branchjdev_aspen
changeset 277680c2ba98f92431
parent 274695 92d1f423b063
Bugfix #236480, do not fail when processing zombie heap dump
(transplanted from 5e917f2464d2edfb04d205a8ba89f8a4cfe24798)
profiler/src/org/netbeans/modules/profiler/ProfilerControlPanel2.java
     1.1 --- a/profiler/src/org/netbeans/modules/profiler/ProfilerControlPanel2.java	Thu Oct 24 11:59:26 2013 +0200
     1.2 +++ b/profiler/src/org/netbeans/modules/profiler/ProfilerControlPanel2.java	Thu Nov 14 17:12:10 2013 +0100
     1.3 @@ -1223,6 +1223,7 @@
     1.4          
     1.5          private boolean isOpen(Snapshot s) {
     1.6              File f = FileUtil.toFile(s.getFile());
     1.7 +            if (f == null) return false; // #236480
     1.8  
     1.9              if (s.isHeapDump()) {
    1.10                  Set<TopComponent> tcs = WindowManager.getDefault().getRegistry().getOpened();