Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Valenta2006-01-25 17:02:43 +0000
committerMichael Valenta2006-01-25 17:02:43 +0000
commit2b60d1031e5236412cab428d3c9128cd6c0384a5 (patch)
treeb147b937bda8bea25cff4bdbad65c730e60595dc
parent6b1619f2029467d573757da86b017db5f6c6c5e4 (diff)
downloadeclipse.platform.team-2b60d1031e5236412cab428d3c9128cd6c0384a5.tar.gz
eclipse.platform.team-2b60d1031e5236412cab428d3c9128cd6c0384a5.tar.xz
eclipse.platform.team-2b60d1031e5236412cab428d3c9128cd6c0384a5.zip
Bug 125193 Widget disposed exception during shutdown
-rw-r--r--bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/history/GenericHistoryView.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/history/GenericHistoryView.java b/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/history/GenericHistoryView.java
index 8e315a81b..c964a9296 100644
--- a/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/history/GenericHistoryView.java
+++ b/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/history/GenericHistoryView.java
@@ -548,7 +548,8 @@ public class GenericHistoryView extends ViewPart implements IHistoryView {
public void dispose() {
super.dispose();
//Remove the drop listener
- dropTarget.removeDropListener(dropAdapter);
+ if (dropTarget != null && !dropTarget.isDisposed())
+ dropTarget.removeDropListener(dropAdapter);
//Call dispose on current and default pages
currentPageContainer.getPage().dispose();
defaultPageContainer.getPage().dispose();

Back to the top