summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarsten Drossel2009-04-07 06:43:19 (EDT)
committerCarsten Drossel2009-04-07 06:43:19 (EDT)
commit354d36d901bde461288f8b42cb28e2b58ed5ea01 (patch)
tree61dd5afbfb2953cdf7741aa4e8ebd3658ba12f2c
parent605ec5a9db1690ae1129690e00263f4fd9294d87 (diff)
downloadorg.eclipse.riena-354d36d901bde461288f8b42cb28e2b58ed5ea01.zip
org.eclipse.riena-354d36d901bde461288f8b42cb28e2b58ed5ea01.tar.gz
org.eclipse.riena-354d36d901bde461288f8b42cb28e2b58ed5ea01.tar.bz2
checking disposed state before removing listener
-rw-r--r--org.eclipse.riena.navigation.ui.swt/src/org/eclipse/riena/navigation/ui/swt/views/NavigationViewPart.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.riena.navigation.ui.swt/src/org/eclipse/riena/navigation/ui/swt/views/NavigationViewPart.java b/org.eclipse.riena.navigation.ui.swt/src/org/eclipse/riena/navigation/ui/swt/views/NavigationViewPart.java
index 2016569..d542c66 100644
--- a/org.eclipse.riena.navigation.ui.swt/src/org/eclipse/riena/navigation/ui/swt/views/NavigationViewPart.java
+++ b/org.eclipse.riena.navigation.ui.swt/src/org/eclipse/riena/navigation/ui/swt/views/NavigationViewPart.java
@@ -133,7 +133,7 @@ public class NavigationViewPart extends ViewPart implements IModuleNavigationCom
public void dispose() {
super.dispose();
- if (parent != null && resizeListener != null) {
+ if (parent != null && !parent.isDisposed() && resizeListener != null) {
parent.removeControlListener(resizeListener);
}
}