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 207184 - NPE thrown from Root methods selector
Summary: NPE thrown from Root methods selector
Status: RESOLVED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 7.1
Hardware: All All
: P3 normal (vote)
Assignee: Jiri Sedlacek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-11 16:33 UTC by Jiri Sedlacek
Modified: 2012-01-25 16:40 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 2012-01-11 16:33:25 UTC
Steps:

 - Have several projects open in the IDE
 - Attach Profiler, External Application
 - CPU, Profile Application, click Customize...
 - Unselect Show All Projects checkbox, NPE is thrown
Comment 1 Jiri Sedlacek 2012-01-11 16:34:25 UTC
java.lang.NullPointerException
	at org.netbeans.modules.profiler.nbimpl.providers.SelectionTreeBuilderFactoryImpl.buildersForProject(SelectionTreeBuilderFactoryImpl.java:100)
	at org.netbeans.modules.profiler.selector.api.SelectionTreeBuilderFactory.buildersFor(SelectionTreeBuilderFactory.java:72)
	at org.netbeans.modules.profiler.ui.panels.ProjectSelectRootMethodsPanel.getContext(ProjectSelectRootMethodsPanel.java:465)
	at org.netbeans.modules.profiler.ui.panels.ProjectSelectRootMethodsPanel.access$100(ProjectSelectRootMethodsPanel.java:96)
	at org.netbeans.modules.profiler.ui.panels.ProjectSelectRootMethodsPanel$9.run(ProjectSelectRootMethodsPanel.java:456)
	at org.netbeans.modules.profiler.ui.panels.ProjectSelectRootMethodsPanel.updateSelector(ProjectSelectRootMethodsPanel.java:441)
	at org.netbeans.modules.profiler.ui.panels.ProjectSelectRootMethodsPanel.updateSelectorProjects(ProjectSelectRootMethodsPanel.java:452)
	at org.netbeans.modules.profiler.ui.panels.ProjectSelectRootMethodsPanel.access$500(ProjectSelectRootMethodsPanel.java:96)
	at org.netbeans.modules.profiler.ui.panels.ProjectSelectRootMethodsPanel$6$1.run(ProjectSelectRootMethodsPanel.java:325)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1411)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1991)
Comment 2 Jiri Sedlacek 2012-01-12 12:52:29 UTC
Fixed by http://hg.netbeans.org/profiler-main/rev/92aef24ca19a.
Comment 3 Quality Engineering 2012-01-25 16:40:04 UTC
Integrated into 'main-golden', will be available in build *201201250600* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/92aef24ca19a
User: Jiri Sedlacek <jis@netbeans.org>
Log: Bugfix #207184 - always show advanced root method selector for external application attach