Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Valenta2006-01-17 01:50:22 +0000
committerMichael Valenta2006-01-17 01:50:22 +0000
commitc32cf37373f2940ed64a3ba742d8864fae8a7ce0 (patch)
tree7a9bc983610fd21502bf5f7df62035b8658400f5
parent59a578c1f713804c57422f75f580c2976bfc0980 (diff)
downloadeclipse.platform.team-c32cf37373f2940ed64a3ba742d8864fae8a7ce0.tar.gz
eclipse.platform.team-c32cf37373f2940ed64a3ba742d8864fae8a7ce0.tar.xz
eclipse.platform.team-c32cf37373f2940ed64a3ba742d8864fae8a7ce0.zip
Bug 124061 Exceptions occur opening the sync view
-rw-r--r--bundles/org.eclipse.team.ui/src/org/eclipse/team/ui/synchronize/SynchronizePageActionGroup.java11
1 files changed, 7 insertions, 4 deletions
diff --git a/bundles/org.eclipse.team.ui/src/org/eclipse/team/ui/synchronize/SynchronizePageActionGroup.java b/bundles/org.eclipse.team.ui/src/org/eclipse/team/ui/synchronize/SynchronizePageActionGroup.java
index 2eacad472..e85640afa 100644
--- a/bundles/org.eclipse.team.ui/src/org/eclipse/team/ui/synchronize/SynchronizePageActionGroup.java
+++ b/bundles/org.eclipse.team.ui/src/org/eclipse/team/ui/synchronize/SynchronizePageActionGroup.java
@@ -262,10 +262,13 @@ public abstract class SynchronizePageActionGroup extends ActionGroup {
*/
private void registerActionWithWorkbench(IAction action) {
ISynchronizePageSite site = configuration.getSite();
- site.getActionBars().setGlobalActionHandler(action.getId(), action);
- IKeyBindingService keyBindingService = site.getKeyBindingService();
- if(keyBindingService != null)
- keyBindingService.registerAction(action);
+ String id = action.getId();
+ if (id != null) {
+ site.getActionBars().setGlobalActionHandler(id, action);
+ IKeyBindingService keyBindingService = site.getKeyBindingService();
+ if(keyBindingService != null)
+ keyBindingService.registerAction(action);
+ }
}
/**

Back to the top