1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-24 01:15:29 +02:00

Fix NPE on projects which aren't full CDT projects

Change-Id: I4b611fe032eca9c5657d493fc60d6451bd6ddf7d
This commit is contained in:
Jonah Graham 2021-06-14 15:40:23 -04:00
parent d907da99a4
commit ffc4272acb
2 changed files with 4 additions and 1 deletions

View file

@ -2,7 +2,7 @@ Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %pluginName
Bundle-SymbolicName: org.eclipse.cdt.ui; singleton:=true
Bundle-Version: 7.2.0.qualifier
Bundle-Version: 7.2.100.qualifier
Bundle-Activator: org.eclipse.cdt.ui.CUIPlugin
Bundle-Vendor: %providerName
Bundle-Localization: plugin

View file

@ -142,6 +142,9 @@ class ProjectMap {
*/
public void save() throws CoreException {
ICProjectDescription pd = CCorePlugin.getDefault().getProjectDescription(fProject, true);
if (pd == null) {
return;
}
// remove current associations
ICStorageElement data = pd.getStorage(ATTRVAL_STORAGEID, true);