From fe47b4e2fc7c3afdcab7e92f046d3a5c47b53bc3 Mon Sep 17 00:00:00 2001 From: Martin Oberhuber < martin.oberhuber@windriver.com> Date: Thu, 4 Sep 2008 10:03:06 +0000 Subject: [PATCH] [236516] Make SubSystemConfiguration#createSubSystemAfterTheFact() safe --- .../rse/core/subsystems/SubSystemConfiguration.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/rse/plugins/org.eclipse.rse.ui/subsystems/org/eclipse/rse/core/subsystems/SubSystemConfiguration.java b/rse/plugins/org.eclipse.rse.ui/subsystems/org/eclipse/rse/core/subsystems/SubSystemConfiguration.java index e13fc88520a..62ebf5f2c33 100644 --- a/rse/plugins/org.eclipse.rse.ui/subsystems/org/eclipse/rse/core/subsystems/SubSystemConfiguration.java +++ b/rse/plugins/org.eclipse.rse.ui/subsystems/org/eclipse/rse/core/subsystems/SubSystemConfiguration.java @@ -2553,7 +2553,12 @@ public abstract class SubSystemConfiguration implements ISubSystemConfiguration // used in the case where newsubsystems are added after a connection exists public ISubSystem createSubSystemAfterTheFact(IHost conn) { - ISubSystem subsys = createSubSystemInternal(conn); + ISubSystem subsys = null; + try { + subsys = createSubSystemInternal(conn); + } catch (RuntimeException e) { + RSECorePlugin.getDefault().getLogger().logError("Error creating subsystem", e); //$NON-NLS-1$ + } if (subsys != null) { internalInitializeNewSubSystem(subsys, conn);