summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaksha Vasisht2011-09-27 04:06:46 (EDT)
committerRaksha Vasisht2011-09-27 04:24:06 (EDT)
commit4778eb29eb182b5bc283c46e59c6eafac8b2afe1 (patch)
treed89c0c51cf283e03f54dd45918c33ab226d03d44
parent16f39f29bb61f0e1e1cbafb314b633ce79f97b57 (diff)
downloadeclipse.jdt.ui-4778eb29eb182b5bc283c46e59c6eafac8b2afe1.zip
eclipse.jdt.ui-4778eb29eb182b5bc283c46e59c6eafac8b2afe1.tar.gz
eclipse.jdt.ui-4778eb29eb182b5bc283c46e59c6eafac8b2afe1.tar.bz2
Fixed bug 353731:[type hierarchy] Exception occurred in listener of
Type hierarchy change notification
-rw-r--r--org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/util/SuperTypeHierarchyCache.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/util/SuperTypeHierarchyCache.java b/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/util/SuperTypeHierarchyCache.java
index bbe119c..9706a17 100644
--- a/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/util/SuperTypeHierarchyCache.java
+++ b/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/util/SuperTypeHierarchyCache.java
@@ -54,8 +54,10 @@ public class SuperTypeHierarchyCache {
}
public void dispose() {
- fTypeHierarchy.removeTypeHierarchyChangedListener(this);
- fTypeHierarchy= null;
+ if (fTypeHierarchy != null) {
+ fTypeHierarchy.removeTypeHierarchyChangedListener(this);
+ fTypeHierarchy= null;
+ }
}
/* (non-Javadoc)