Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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