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 204140 - NPE in Sampling.sample()
Summary: NPE in Sampling.sample()
Status: RESOLVED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Engine (show other bugs)
Version: 7.1
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Hurka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-24 07:46 UTC by Tomas Hurka
Modified: 2011-10-26 14:26 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 Tomas Hurka 2011-10-24 07:46:41 UTC
The NPE below happens sometimes when exiting profiling session.

Exception in thread "*** Profiler Agent Special Execution Thread 10" java.lang.NullPointerException
	at org.netbeans.lib.profiler.server.ProfilerRuntimeSampler$Sampling.sample(ProfilerRuntimeSampler.java:89)
	at org.netbeans.lib.profiler.server.SamplingThread.run(SamplingThread.java:74)
Comment 1 Tomas Hurka 2011-10-24 08:10:59 UTC
Fixed in profiler-main

changeset:   205034:7d9602419026
user:        Tomas Hurka <thurka@netbeans.org>
date:        Mon Oct 24 10:09:28 2011 +0200
summary:     bugfix #204140, ignore sample if eventBuffer is null
Comment 2 Quality Engineering 2011-10-26 14:26:32 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/7d9602419026
User: Tomas Hurka <thurka@netbeans.org>
Log: bugfix #204140, ignore sample if eventBuffer is null