1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-15 13:05:22 +02:00

[236516] Make SubSystemConfiguration#createSubSystemAfterTheFact() safe

This commit is contained in:
Martin Oberhuber 2008-09-04 10:03:06 +00:00
parent 5ff3e6882d
commit fe47b4e2fc

View file

@ -2553,7 +2553,12 @@ public abstract class SubSystemConfiguration implements ISubSystemConfiguration
// used in the case where newsubsystems are added after a connection exists // used in the case where newsubsystems are added after a connection exists
public ISubSystem createSubSystemAfterTheFact(IHost conn) 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) if (subsys != null)
{ {
internalInitializeNewSubSystem(subsys, conn); internalInitializeNewSubSystem(subsys, conn);