mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-03 07:05:24 +02:00
[236516] Make SubSystemConfiguration#createSubSystemAfterTheFact() safe
This commit is contained in:
parent
5ff3e6882d
commit
fe47b4e2fc
1 changed files with 6 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue