mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-26 18:35:32 +02:00
[182802] null pointer check and some logging messages. I can't reproduce this but logging to see if we can gather more info on how this happens.
This commit is contained in:
parent
65b6846d56
commit
3a6d940b12
1 changed files with 12 additions and 2 deletions
|
@ -920,10 +920,18 @@ public abstract class SubSystemConfiguration implements ISubSystemConfiguration
|
||||||
public void renameSubSystemsByConnection(IHost conn, String newConnectionName)
|
public void renameSubSystemsByConnection(IHost conn, String newConnectionName)
|
||||||
{
|
{
|
||||||
ISubSystem[] subsystems = getSubSystems(conn, ISubSystemConfiguration.FORCE_INTO_MEMORY);
|
ISubSystem[] subsystems = getSubSystems(conn, ISubSystemConfiguration.FORCE_INTO_MEMORY);
|
||||||
|
if (subsystems != null)
|
||||||
|
{
|
||||||
for (int idx = 0; idx < subsystems.length; idx++)
|
for (int idx = 0; idx < subsystems.length; idx++)
|
||||||
{
|
{
|
||||||
subsystems[idx].renamingConnection(newConnectionName);
|
subsystems[idx].renamingConnection(newConnectionName);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// strange situation..log this
|
||||||
|
RSEUIPlugin.logInfo("renameSubSystemsByConnection for " + conn.getAliasName() + " has no subsystems" );
|
||||||
|
}
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
saveSubSystems(conn);
|
saveSubSystems(conn);
|
||||||
|
@ -1033,6 +1041,7 @@ public abstract class SubSystemConfiguration implements ISubSystemConfiguration
|
||||||
boolean subsystemsRestored = subSystemsHaveBeenRestored(conn);
|
boolean subsystemsRestored = subSystemsHaveBeenRestored(conn);
|
||||||
if (!subsystemsRestored && force)
|
if (!subsystemsRestored && force)
|
||||||
{
|
{
|
||||||
|
RSEUIPlugin.logInfo("in SubSystemConfiguration.getSubSystems(conn, force) - not restored");
|
||||||
/*FIXME - this should now be triggered by new persistence model
|
/*FIXME - this should now be triggered by new persistence model
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
@ -1054,6 +1063,7 @@ public abstract class SubSystemConfiguration implements ISubSystemConfiguration
|
||||||
}
|
}
|
||||||
else if (!subsystemsRestored && !force)
|
else if (!subsystemsRestored && !force)
|
||||||
{
|
{
|
||||||
|
RSEUIPlugin.logInfo("in SubSystemConfiguration.getSubSytems(conn, force) - returning empty array");
|
||||||
return EMPTY_SUBSYSTEM_ARRAY;
|
return EMPTY_SUBSYSTEM_ARRAY;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Reference in a new issue