Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey Loskutov2015-02-08 20:28:06 +0000
committerWojciech Sudol2015-04-13 15:15:06 +0000
commit34f01a490d31a8591bf4a053d3be7192c1bb9972 (patch)
treef78ddcfaac8dcab77c3c1d0bd4d60d3bc7cfaf71
parent48c65fb0010f4f9e1f0e6bdc28e3eb3938bea6ea (diff)
downloadeclipse.platform.ui-34f01a490d31a8591bf4a053d3be7192c1bb9972.tar.gz
eclipse.platform.ui-34f01a490d31a8591bf4a053d3be7192c1bb9972.tar.xz
eclipse.platform.ui-34f01a490d31a8591bf4a053d3be7192c1bb9972.zip
Bug 413329 - NPE in CustomizePerspectiveDialog in createMenuEntries
Don't create menu entries for if contribution item is missing. Change-Id: Icfbe5d60c814d03032552a1ff28598662466b072 Signed-off-by: Andrey Loskutov <loskutov@gmx.de>
-rw-r--r--bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/cpd/CustomizePerspectiveDialog.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/cpd/CustomizePerspectiveDialog.java b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/cpd/CustomizePerspectiveDialog.java
index a14cfdaacd0..e390df1ab50 100644
--- a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/cpd/CustomizePerspectiveDialog.java
+++ b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/cpd/CustomizePerspectiveDialog.java
@@ -1944,6 +1944,9 @@ public class CustomizePerspectiveDialog extends TrayDialog {
} else {
contributionItem = menuMngrRenderer.getContribution(menuItem);
}
+ if (contributionItem == null) {
+ return dynamicEntry;
+ }
if (dynamicEntry != null
&& contributionItem.equals(dynamicEntry.getIContributionItem())) {
// If the last item added is the item meant to go before the

Back to the top