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 255173 - NPE in ObjectsFeatureModes$CustomClassesMode.configureSettings
Summary: NPE in ObjectsFeatureModes$CustomClassesMode.configureSettings
Status: RESOLVED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: Jiri Sedlacek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-10 12:06 UTC by Jiri Sedlacek
Modified: 2015-09-16 01: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 Jiri Sedlacek 2015-09-10 12:06:35 UTC
1/ Select 'Defined classes' for objects profiling, switch to Telemetry, close profiling session
2/ Open new session, enable multiple modes, add Objects, the NPE is thrown:

java.lang.NullPointerException
	at org.netbeans.modules.profiler.v2.features.ObjectsFeatureModes$CustomClassesMode.configureSettings(ObjectsFeatureModes.java:534)
	at org.netbeans.modules.profiler.v2.features.ObjectsFeature.configureSettings(ObjectsFeature.java:275)
	at org.netbeans.modules.profiler.v2.ProfilerFeatures.activateFeature(ProfilerFeatures.java:149)
	at org.netbeans.modules.profiler.v2.ProfilerFeatures.toggleActivated(ProfilerFeatures.java:183)
	at org.netbeans.modules.profiler.v2.ProfilerWindow$17.fireActionPerformed(ProfilerWindow.java:568)
	at org.netbeans.modules.profiler.v2.ui.StayOpenPopupMenu$Item.actionPerformed(StayOpenPopupMenu.java:215)
	at org.netbeans.modules.profiler.v2.ui.StayOpenPopupMenu.performAction(StayOpenPopupMenu.java:170)
	at org.netbeans.modules.profiler.v2.ui.StayOpenPopupMenu.performAction(StayOpenPopupMenu.java:178)
	at org.netbeans.modules.profiler.v2.ui.StayOpenPopupMenu.access$000(StayOpenPopupMenu.java:75)
	at org.netbeans.modules.profiler.v2.ui.StayOpenPopupMenu$Item.processMouseEvent(StayOpenPopupMenu.java:220)
	at java.awt.Component.processEvent(Component.java:6281)
	at java.awt.Container.processEvent(Container.java:2229)
	at java.awt.Component.dispatchEventImpl(Component.java:4872)
	at java.awt.Container.dispatchEventImpl(Container.java:2287)
	at java.awt.Component.dispatchEvent(Component.java:4698)
        [...]
Comment 1 Jiri Sedlacek 2015-09-10 12:26:43 UTC
Fixed by http://hg.netbeans.org/profiler-main/rev/ddd38302522c.
Comment 2 Quality Engineering 2015-09-16 01:26:10 UTC
Integrated into 'main-silver', will be available in build *201509160002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/ddd38302522c
User: Jiri Sedlacek <jis@netbeans.org>
Log: Bugfix #255173 - do not read memory settings if UI not ready yet