Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/actions/TeamAction.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/actions/TeamAction.java b/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/actions/TeamAction.java
index b308dc343..fffc6743e 100644
--- a/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/actions/TeamAction.java
+++ b/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/actions/TeamAction.java
@@ -432,7 +432,9 @@ public abstract class TeamAction extends AbstractHandler implements IObjectActio
super.dispose();
if(window != null) {
window.getSelectionService().removePostSelectionListener(selectionListener);
- window.getActivePage().removePartListener(targetPartListener);
+ if (window.getActivePage() != null) {
+ window.getActivePage().removePartListener(targetPartListener);
+ }
targetPartListener = null;
}
// Don't hold on to anything when we are disposed to prevent memory leaks (see bug 195521)

Back to the top