mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-07 00:05:53 +02:00
Zhou Renjian (Kortide) - [282238] NPE when copying host and overwrite itself
This commit is contained in:
parent
51636359e5
commit
2a242b805a
1 changed files with 5 additions and 0 deletions
|
@ -59,6 +59,7 @@
|
||||||
* David McKnight (IBM) - [249247] Expand New Connections
|
* David McKnight (IBM) - [249247] Expand New Connections
|
||||||
* David McKnight (IBM) - [254590] When disconnecting a subsystem with COLLAPSE option, subsystems of other connector services also get collapsed
|
* David McKnight (IBM) - [254590] When disconnecting a subsystem with COLLAPSE option, subsystems of other connector services also get collapsed
|
||||||
* Martin Oberhuber (Wind River) - [245154][api] add getSubSystemConfigurationProxiesBySystemType()
|
* Martin Oberhuber (Wind River) - [245154][api] add getSubSystemConfigurationProxiesBySystemType()
|
||||||
|
* Zhou Renjian (Kortide) - [282238] NPE when copying host and overwrite itself
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
package org.eclipse.rse.internal.core.model;
|
package org.eclipse.rse.internal.core.model;
|
||||||
|
@ -2097,6 +2098,10 @@ public class SystemRegistry implements ISystemRegistry
|
||||||
{
|
{
|
||||||
// STEP 1: COPY CONNECTION ITSELF, MINUS ITS SUBSYSTEMS...
|
// STEP 1: COPY CONNECTION ITSELF, MINUS ITS SUBSYSTEMS...
|
||||||
newConn = oldPool.cloneHost(targetPool, conn, newName);
|
newConn = oldPool.cloneHost(targetPool, conn, newName);
|
||||||
|
// Fix bug#282238: NPE when copying host and overwrite itself
|
||||||
|
if (newConn == null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
// STEP 2: COPY ALL SUBSYSTEMS FOR THE COPIED CONNECTION
|
// STEP 2: COPY ALL SUBSYSTEMS FOR THE COPIED CONNECTION
|
||||||
msg = RSECoreMessages.MSG_COPYSUBSYSTEMS_PROGRESS;
|
msg = RSECoreMessages.MSG_COPYSUBSYSTEMS_PROGRESS;
|
||||||
|
|
Loading…
Add table
Reference in a new issue