Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWim Jongman2012-12-17 03:40:05 -0500
committerWim Jongman2012-12-17 03:40:05 -0500
commitfb48437314396d49fec95f0df1546ac4111f2695 (patch)
treecae7ce871d7a09a06fc481e77881e4e8eff097b9
parentc5d507c20f0c13f4174b5121415a6b31e7356f2c (diff)
downloadorg.eclipse.e4.tools-fb48437314396d49fec95f0df1546ac4111f2695.tar.gz
org.eclipse.e4.tools-fb48437314396d49fec95f0df1546ac4111f2695.tar.xz
org.eclipse.e4.tools-fb48437314396d49fec95f0df1546ac4111f2695.zip
bug 396717: NPE in PatternFilterI20121218-2200I20121218-0730
https://bugs.eclipse.org/bugs/show_bug.cgi?id=395174
-rw-r--r--bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/PatternFilter.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/PatternFilter.java b/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/PatternFilter.java
index 9e82fb41..46953752 100644
--- a/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/PatternFilter.java
+++ b/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/PatternFilter.java
@@ -45,7 +45,9 @@ public class PatternFilter extends org.eclipse.e4.ui.workbench.swt.internal.copy
if (labelProvider instanceof ILabelProvider) {
labelText = ((ILabelProvider) labelProvider).getText(element);
} else {
- labelText = element.toString();
+ if (element != null) {
+ labelText = element.toString();
+ }
}
if (labelText == null) {

Back to the top