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 252270 - NPE in CPUCallGraphBuilder.getDumpAbsTimeStamp
Summary: NPE in CPUCallGraphBuilder.getDumpAbsTimeStamp
Status: NEW
Alias: None
Product: profiler
Classification: Unclassified
Component: Engine (show other bugs)
Version: 8.1
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Tomas Hurka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-06 13:27 UTC by Jiri Sedlacek
Modified: 2015-05-06 13:27 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Sedlacek 2015-05-06 13:27:43 UTC
Got a NPE when switching from Methods/All classes to Threads. Doesn't seem to be easily reproducible:

java.lang.NullPointerException
	at org.netbeans.lib.profiler.results.cpu.CPUCallGraphBuilder.getDumpAbsTimeStamp(CPUCallGraphBuilder.java:194)
	at org.netbeans.lib.profiler.results.cpu.CPUCallGraphBuilder.calculateThreadActiveTimes(CPUCallGraphBuilder.java:839)
	at org.netbeans.lib.profiler.results.cpu.CPUCallGraphBuilder.createPresentationCCTs(CPUCallGraphBuilder.java:167)
	at org.netbeans.lib.profiler.results.cpu.CPUResultsSnapshot.<init>(CPUResultsSnapshot.java:191)
	at org.netbeans.lib.profiler.ProfilerClient.getCPUProfilingResultsSnapshot(ProfilerClient.java:517)
[catch] at org.netbeans.lib.profiler.ui.cpu.LiveCPUView.refreshData(LiveCPUView.java:185)
	at org.netbeans.lib.profiler.ui.cpu.LiveCPUView.access$000(LiveCPUView.java:91)
	at org.netbeans.lib.profiler.ui.cpu.LiveCPUView$ResultsMonitor.cctEstablished(LiveCPUView.java:125)
	at org.netbeans.lib.profiler.results.BaseCallGraphBuilder.fireCCTEstablished(BaseCallGraphBuilder.java:180)
	at org.netbeans.lib.profiler.results.BaseCallGraphBuilder.onBatchStop(BaseCallGraphBuilder.java:101)
	at org.netbeans.lib.profiler.results.AbstractDataFrameProcessor$4.execute(AbstractDataFrameProcessor.java:198)
	at org.netbeans.lib.profiler.results.AbstractDataFrameProcessor.foreachListener(AbstractDataFrameProcessor.java:177)
	at org.netbeans.lib.profiler.results.AbstractDataFrameProcessor.fireBatchStop(AbstractDataFrameProcessor.java:196)
	at org.netbeans.lib.profiler.results.AbstractDataFrameProcessor.processDataFrame(AbstractDataFrameProcessor.java:105)
	at org.netbeans.lib.profiler.results.ProfilingResultsDispatcher$3.run(ProfilingResultsDispatcher.java:203)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
	at java.util.concurrent.FutureTask.run(FutureTask.java:262)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at java.lang.Thread.run(Thread.java:745)