Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Rennie2008-07-15 20:55:22 +0000
committerMichael Rennie2008-07-15 20:55:22 +0000
commit90decd4c9fcd20ff3922b76a62240d4fbeda341b (patch)
treeeb1bc645962913fc1622bf061ab4cfa098367aa2 /org.eclipse.ui.console
parent78bf5426104734dfae45af384c24ce6c27d1a6ab (diff)
downloadeclipse.platform.debug-90decd4c9fcd20ff3922b76a62240d4fbeda341b.tar.gz
eclipse.platform.debug-90decd4c9fcd20ff3922b76a62240d4fbeda341b.tar.xz
eclipse.platform.debug-90decd4c9fcd20ff3922b76a62240d4fbeda341b.zip
Bug 240985 NPE adding org.eclipse.ui.console.consolePageParticipants extension without enablement clause
Diffstat (limited to 'org.eclipse.ui.console')
-rw-r--r--org.eclipse.ui.console/src/org/eclipse/ui/internal/console/ConsolePageParticipantExtension.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/org.eclipse.ui.console/src/org/eclipse/ui/internal/console/ConsolePageParticipantExtension.java b/org.eclipse.ui.console/src/org/eclipse/ui/internal/console/ConsolePageParticipantExtension.java
index c329cdb98..d9c5f5697 100644
--- a/org.eclipse.ui.console/src/org/eclipse/ui/internal/console/ConsolePageParticipantExtension.java
+++ b/org.eclipse.ui.console/src/org/eclipse/ui/internal/console/ConsolePageParticipantExtension.java
@@ -46,8 +46,12 @@ public class ConsolePageParticipantExtension implements IPluginContribution {
public boolean isEnabledFor(IConsole console) throws CoreException {
EvaluationContext context = new EvaluationContext(null, console);
- EvaluationResult evaluationResult = getEnablementExpression().evaluate(context);
- return evaluationResult == EvaluationResult.TRUE;
+ Expression expression = getEnablementExpression();
+ if (expression != null){
+ EvaluationResult evaluationResult = expression.evaluate(context);
+ return evaluationResult == EvaluationResult.TRUE;
+ }
+ return true;
}
public Expression getEnablementExpression() throws CoreException {

Back to the top