Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bundles/org.eclipse.e4.core.commands/src/org/eclipse/e4/core/commands/internal/HandlerServiceHandler.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.e4.core.commands/src/org/eclipse/e4/core/commands/internal/HandlerServiceHandler.java b/bundles/org.eclipse.e4.core.commands/src/org/eclipse/e4/core/commands/internal/HandlerServiceHandler.java
index ca6253f039a..9a098588cdf 100644
--- a/bundles/org.eclipse.e4.core.commands/src/org/eclipse/e4/core/commands/internal/HandlerServiceHandler.java
+++ b/bundles/org.eclipse.e4.core.commands/src/org/eclipse/e4/core/commands/internal/HandlerServiceHandler.java
@@ -42,7 +42,7 @@ public class HandlerServiceHandler extends AbstractHandler {
public boolean isEnabled() {
ExecutionContexts contexts = HandlerServiceImpl.peek();
// setEnabled(contexts);
- IEclipseContext executionContext = contexts.context; // getExecutionContext(contexts);
+ IEclipseContext executionContext = contexts != null ? contexts.context : null; // getExecutionContext(contexts);
if (executionContext == null) {
return super.isEnabled();
}

Back to the top