Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 329717 - NPE in ui.actions.ChangeBuildConfigActionBase.onSelectionChanged
Summary: NPE in ui.actions.ChangeBuildConfigActionBase.onSelectionChanged
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-build (show other bugs)
Version: 7.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: cdt-build-inbox@eclipse.org CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-08 18:23 EST by Bernhard Merkle CLA
Modified: 2020-09-04 15:21 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bernhard Merkle CLA 2010-11-08 18:23:09 EST
Build Identifier: I20100608-0911

Eclipse C/C++ Development Tools SDK

Version: 7.0.0.201006141710
Build id: 201006141710

I get the following NPE. However i did not even open a CDT project.
Instead this exceptions happens when I am working with XML/WST stuff.
I have both (CDT and XML/WST plugins deployed in the same eclipse installation of course, however the CDT plugin should NOT be active ???)

!STACK 0
java.lang.NullPointerException
	at org.eclipse.cdt.ui.actions.ChangeBuildConfigActionBase.onSelectionChanged(ChangeBuildConfigActionBase.java:261)
	at org.eclipse.cdt.ui.actions.ChangeBuildConfigContextAction.selectionChanged(ChangeBuildConfigContextAction.java:47)
	at org.eclipse.ui.internal.PluginAction.refreshEnablement(PluginAction.java:206)
	at org.eclipse.ui.internal.PluginAction.createDelegate(PluginAction.java:126)


Reproducible: Always
Comment 1 Bernhard Merkle CLA 2010-11-08 19:20:17 EST
I am using the org.eclipsecon.tutorial371example.contentassist from eclipsecon 2009 and start the plugin (eclipse runtime instance). then the NPE happens.

Interestingly several cdt plugins are active despite that fact that I am using a JDT project, e.g. my registry-view shows as active: (in a JDT project!) cdt.core, cdt.debug.*, cdt.make.ui, cdt.ui, cdt.managedbuilder.core