Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUwe Stieber2014-05-26 02:29:31 -0400
committerUwe Stieber2014-05-26 02:29:31 -0400
commit8357b949ac1eb0e8fc6b20c8047db5c687fd27f3 (patch)
tree351f707e8f24246480c780af070ae48c685eda7d
parentf590a2fcce23705dde516490be94b0d1f7cc1961 (diff)
downloadorg.eclipse.tcf-8357b949ac1eb0e8fc6b20c8047db5c687fd27f3.tar.gz
org.eclipse.tcf-8357b949ac1eb0e8fc6b20c8047db5c687fd27f3.tar.xz
org.eclipse.tcf-8357b949ac1eb0e8fc6b20c8047db5c687fd27f3.zip
Terminals: Fix findbugs warning
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.ui.terminals/src/org/eclipse/tcf/te/ui/terminals/launcher/AbstractLauncherDelegate.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.ui.terminals/src/org/eclipse/tcf/te/ui/terminals/launcher/AbstractLauncherDelegate.java b/target_explorer/plugins/org.eclipse.tcf.te.ui.terminals/src/org/eclipse/tcf/te/ui/terminals/launcher/AbstractLauncherDelegate.java
index e09627f04..5d87fe0b8 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.ui.terminals/src/org/eclipse/tcf/te/ui/terminals/launcher/AbstractLauncherDelegate.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.ui.terminals/src/org/eclipse/tcf/te/ui/terminals/launcher/AbstractLauncherDelegate.java
@@ -32,8 +32,10 @@ public abstract class AbstractLauncherDelegate extends ExecutableExtension imple
public void doSetInitializationData(IConfigurationElement config, String propertyName, Object data) throws CoreException {
super.doSetInitializationData(config, propertyName, data);
+ if (config == null) return;
+
// Read the sub elements of the extension
- IConfigurationElement[] children = config != null ? config.getChildren() : null;
+ IConfigurationElement[] children = config.getChildren();
// The "enablement" element is the only expected one
if (children != null && children.length > 0) {
expression = ExpressionConverter.getDefault().perform(children[0]);

Back to the top