diff options
author | Wim Jongman | 2014-09-10 17:27:37 +0000 |
---|---|---|
committer | Lars Vogel | 2014-09-15 09:05:43 +0000 |
commit | 6e609f10c35756c4823af614ee1622b0d318bd7e (patch) | |
tree | 76730de29eba25aa3a525ec81f825e5f0d7e1fcc | |
parent | 41a9426b3834356cbaa9d7e067024ea81e547c82 (diff) | |
download | eclipse.platform.ui-6e609f10c35756c4823af614ee1622b0d318bd7e.tar.gz eclipse.platform.ui-6e609f10c35756c4823af614ee1622b0d318bd7e.tar.xz eclipse.platform.ui-6e609f10c35756c4823af614ee1622b0d318bd7e.zip |
Bug 443635: NPE in ShowInMenu
Change-Id: Ie665e149a96a27e6b3dce2cdcbfbd579b225d171
Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=443635
Signed-off-by: Wim Jongman <wim.jongman@remainsoftware.com>
-rw-r--r-- | bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/ShowInMenu.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/ShowInMenu.java b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/ShowInMenu.java index 11d9f670382..ef516a9016b 100644 --- a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/ShowInMenu.java +++ b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/ShowInMenu.java @@ -234,7 +234,7 @@ public class ShowInMenu extends ContributionItem implements workbenchWindow, commandId, commandId, CommandContributionItem.STYLE_PUSH); String label = menuElement.getLabel(); - if (label.length() > 0) { + if (label != null && label.length() > 0) { ccip.label = label; String mnemonics = menuElement.getMnemonics(); if (mnemonics != null && mnemonics.length() == 1) { |