commit | ffc4272acb850883b9f7dde273392e8990e9f051 | [log] [tgz] |
---|---|---|
author | Jonah Graham <jonah@kichwacoders.com> | Mon Jun 14 15:40:23 2021 -0400 |
committer | Jonah Graham <jonah@kichwacoders.com> | Mon Jun 14 22:20:28 2021 -0400 |
tree | be63e87cd594d6e4ca864a9d6dc062876868d901 | |
parent | d907da99a48af43531006f04578a343fbacebb97 [diff] |
Fix NPE on projects which aren't full CDT projects Change-Id: I4b611fe032eca9c5657d493fc60d6451bd6ddf7d
diff --git a/core/org.eclipse.cdt.ui/META-INF/MANIFEST.MF b/core/org.eclipse.cdt.ui/META-INF/MANIFEST.MF index 90c70d3..334f57a 100644 --- a/core/org.eclipse.cdt.ui/META-INF/MANIFEST.MF +++ b/core/org.eclipse.cdt.ui/META-INF/MANIFEST.MF
@@ -2,7 +2,7 @@ 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
diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/doctools/ProjectMap.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/doctools/ProjectMap.java index 3cb1508..7d5181f 100644 --- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/doctools/ProjectMap.java +++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/doctools/ProjectMap.java
@@ -142,6 +142,9 @@ */ 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);