Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Valenta2004-09-08 17:35:52 +0000
committerMichael Valenta2004-09-08 17:35:52 +0000
commitfa70fd4457186446b910fe93be1f3f2e911da814 (patch)
treed5bc8b72fdf422bbfaeef7a88c0657299d9a6a40
parent80dc6cc850a7dbb5136c12b281979f4b3e136d46 (diff)
downloadeclipse.platform.team-fa70fd4457186446b910fe93be1f3f2e911da814.tar.gz
eclipse.platform.team-fa70fd4457186446b910fe93be1f3f2e911da814.tar.xz
eclipse.platform.team-fa70fd4457186446b910fe93be1f3f2e911da814.zip
Bug 73427 NPE in DefaultSynchronizePageActions.setContext
-rw-r--r--bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/synchronize/actions/DefaultSynchronizePageActions.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/synchronize/actions/DefaultSynchronizePageActions.java b/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/synchronize/actions/DefaultSynchronizePageActions.java
index 60cf94038..60a4abf19 100644
--- a/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/synchronize/actions/DefaultSynchronizePageActions.java
+++ b/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/synchronize/actions/DefaultSynchronizePageActions.java
@@ -89,16 +89,16 @@ public class DefaultSynchronizePageActions extends SynchronizePageActionGroup {
* @see org.eclipse.team.ui.synchronize.SynchronizePageActionGroup#dispose()
*/
public void dispose() {
+ super.dispose();
if (refactorActions != null) refactorActions.dispose();
if (openWithActions != null) openWithActions.dispose();
- super.dispose();
}
/* (non-Javadoc)
* @see org.eclipse.ui.actions.ActionGroup#setContext(org.eclipse.ui.actions.ActionContext)
*/
public void setContext(ActionContext context) {
- openWithActions.setContext(context);
- refactorActions.setContext(context);
+ if (openWithActions != null) openWithActions.setContext(context);
+ if (refactorActions != null) refactorActions.setContext(context);
}
}

Back to the top