Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 329717

Summary: NPE in ui.actions.ChangeBuildConfigActionBase.onSelectionChanged
Product: [Tools] CDT Reporter: Bernhard Merkle <bernhard.merkle>
Component: cdt-buildAssignee: cdt-build-inbox <cdt-build-inbox>
Status: NEW --- QA Contact: Jonah Graham <jonah>
Severity: normal    
Priority: P3 CC: cdtdoug
Version: 7.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

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