Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Vogel2014-10-24 13:27:17 +0000
committerLars Vogel2014-10-24 13:29:34 +0000
commitbf99da90958e3fa0af03272e8202a02f3cfa8388 (patch)
treee7802f58818e2e6251c4eff1d375db5dbcbe1368
parent92c948156c48894f09df984c0793c3d8d00d77b9 (diff)
downloadeclipse.platform.ui-bf99da90958e3fa0af03272e8202a02f3cfa8388.tar.gz
eclipse.platform.ui-bf99da90958e3fa0af03272e8202a02f3cfa8388.tar.xz
eclipse.platform.ui-bf99da90958e3fa0af03272e8202a02f3cfa8388.zip
Bug 446965 - [platform] Problems occurred when invoking code from
plug-in: "org.eclipse.e4.ui.workben... (err_grp: 05c19149) Change-Id: I487c2e74d3e8cd7d3d04adf3efd6c4420e408ef2 Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
-rw-r--r--bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/handlers/EditorInputPropertyTester.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/handlers/EditorInputPropertyTester.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/handlers/EditorInputPropertyTester.java
index eedb1b30669..6ec532b3c05 100644
--- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/handlers/EditorInputPropertyTester.java
+++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/handlers/EditorInputPropertyTester.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2013 IBM Corporation and others.
+ * Copyright (c) 2013, 2014 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -7,6 +7,7 @@
*
* Contributors:
* IBM Corporation - initial API and implementation
+ * Lars Vogel <Lars.Vogel@vogella.com> - Bug 446965
******************************************************************************/
package org.eclipse.ui.internal.ide.handlers;
@@ -39,6 +40,9 @@ public class EditorInputPropertyTester extends PropertyTester {
if (input instanceof IFileEditorInput) {
return true;
}
+ if (input == null) {
+ return false;
+ }
Object obj = input.getAdapter(IResource.class);
return obj!=null;
}

Back to the top