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 240063 - NullPointerException at org.netbeans.lib.profiler.results.locks.ThreadLockCCTNode.summarize
Summary: NullPointerException at org.netbeans.lib.profiler.results.locks.ThreadLockCCT...
Status: RESOLVED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Engine (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Hurka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-07 09:48 UTC by Petr Cyhelsky
Modified: 2014-01-10 02:41 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 206365


Attachments
stacktrace (2.08 KB, text/plain)
2014-01-07 09:48 UTC, Petr Cyhelsky
Details
stacktrace (2.10 KB, text/plain)
2014-01-08 08:06 UTC, Tomas Hurka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Cyhelsky 2014-01-07 09:48:55 UTC
Build: NetBeans IDE Dev (Build 201312160002)
VM: Java HotSpot(TM) 64-Bit Server VM, 24.45-b08, Java(TM) SE Runtime Environment, 1.7.0_45-b33
OS: Linux

User Comments:
cyhelsky: I have closed the profiled application (netbeans) while the lock contention view was still open.




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.lib.profiler.results.locks.ThreadLockCCTNode.summarize(ThreadLockCCTNode.java:123)
   at org.netbeans.lib.profiler.results.locks.ThreadLockCCTNode.getTime(ThreadLockCCTNode.java:90)
   at org.netbeans.lib.profiler.results.locks.LockCCTNode$3.compare(LockCCTNode.java:193)
   at org.netbeans.lib.profiler.results.locks.LockCCTNode$3.compare(LockCCTNode.java:191)
   at java.util.TimSort.binarySort(TimSort.java:265)
   at java.util.TimSort.sort(TimSort.java:208)
Comment 1 Petr Cyhelsky 2014-01-07 09:48:57 UTC
Created attachment 143663 [details]
stacktrace
Comment 2 Jiri Sedlacek 2014-01-07 14:37:22 UTC
Reproduced:

  1/ Win7 64b, 7u45 64b, Anagram Game
  2/ Custom CPU, advanced, all advanced settings selected
  3/ Start profiling, NPE shows immediately after displaying Locks window
Comment 3 Tomas Hurka 2014-01-08 08:06:41 UTC
Created attachment 143698 [details]
stacktrace

CPU profiling with locks
Comment 4 Tomas Hurka 2014-01-08 08:23:19 UTC
Fixed in profiler-main

changeset:   269592:3b2b2b1cc6e0
user:        Tomas Hurka <thurka@netbeans.org>
date:        Wed Jan 08 09:21:34 2014 +0100
summary:     bugfix #240063, waitNode can be null
Comment 5 Quality Engineering 2014-01-10 02:41:51 UTC
Integrated into 'main-silver', will be available in build *201401100002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/3b2b2b1cc6e0
User: Tomas Hurka <thurka@netbeans.org>
Log: bugfix #240063, waitNode can be null