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 246478 - NullPointerException at org.netbeans.lib.profiler.results.locks.MonitorCCTNode.summarize
Summary: NullPointerException at org.netbeans.lib.profiler.results.locks.MonitorCCTNod...
Status: VERIFIED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Engine (show other bugs)
Version: 8.0.1
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Hurka
URL:
Keywords:
: 251617 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-08-15 13:35 UTC by Jiri Skrivanek
Modified: 2015-04-13 12:30 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 211242


Attachments
stacktrace (2.08 KB, text/plain)
2014-08-15 13:35 UTC, Jiri Skrivanek
Details
stacktrace (2.08 KB, text/plain)
2015-04-03 10:07 UTC, aldobrucale
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Skrivanek 2014-08-15 13:35:11 UTC
Build: NetBeans IDE 8.0.1 (Build 201408142300)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.20-b22, Java(TM) SE Runtime Environment, 1.8.0_20-ea-b23
OS: Windows 7

User Comments:
jskrivanek: No sure if reproducible. I did
- create sample Paint app
- right-click project node and choose Profile
- select Monitor, Enable threads monitoring, Enable lock contention monitoring
- click Run
- expand some nodes in Lock Contention view




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.lib.profiler.results.locks.MonitorCCTNode.summarize(MonitorCCTNode.java:125)
   at org.netbeans.lib.profiler.results.locks.MonitorCCTNode.getTime(MonitorCCTNode.java:91)
   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:292)
   at java.util.TimSort.sort(TimSort.java:217)
Comment 1 Jiri Skrivanek 2014-08-15 13:35:12 UTC
Created attachment 148716 [details]
stacktrace
Comment 2 aldobrucale 2015-04-03 10:07:22 UTC
Created attachment 153014 [details]
stacktrace

Tried to switch to "View by Monitors" in the profiler's Lock Contention window
Comment 3 Tomas Hurka 2015-04-03 13:05:29 UTC
Fixed in profiler-main

changeset:   285660:62da8c1fe365
user:        Tomas Hurka <thurka@netbeans.org>
date:        Fri Apr 03 15:04:03 2015 +0200
summary:     bugfix #246478, waitNode can be null
Comment 4 Quality Engineering 2015-04-05 04:52:41 UTC
Integrated into 'main-silver', will be available in build *201504050001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/62da8c1fe365
User: Tomas Hurka <thurka@netbeans.org>
Log: bugfix #246478, waitNode can be null
Comment 5 Tomas Hurka 2015-04-13 12:30:56 UTC
*** Bug 251617 has been marked as a duplicate of this bug. ***