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:
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
|
// 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);
|
||||||
|
|
Loading…
Add table
Reference in a new issue