mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-15 04:55:22 +02:00
[199585] Fix NPE during testConnectionRemoval unit test
This commit is contained in:
parent
828af05a30
commit
5348539c00
1 changed files with 9 additions and 10 deletions
|
@ -22,6 +22,7 @@
|
||||||
* Xuan Chen (IBM) - [194838] Move the code for comparing two objects by absolute name to a common location
|
* Xuan Chen (IBM) - [194838] Move the code for comparing two objects by absolute name to a common location
|
||||||
* Kevin Doyle (IBM) - [193394] After Deleting the folder shown in Table get an error
|
* Kevin Doyle (IBM) - [193394] After Deleting the folder shown in Table get an error
|
||||||
* Kevin Doyle (IBM) - [197971] NPE when table has no input and doing commands in Systems View
|
* Kevin Doyle (IBM) - [197971] NPE when table has no input and doing commands in Systems View
|
||||||
|
* Martin Oberhuber (Wind River) - [199585] Fix NPE during testConnectionRemoval unit test
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
package org.eclipse.rse.internal.ui.view;
|
package org.eclipse.rse.internal.ui.view;
|
||||||
|
@ -1544,25 +1545,23 @@ public class SystemTableViewPart extends ViewPart
|
||||||
switch (event.getType())
|
switch (event.getType())
|
||||||
{
|
{
|
||||||
case ISystemResourceChangeEvents.EVENT_RENAME:
|
case ISystemResourceChangeEvents.EVENT_RENAME:
|
||||||
{
|
|
||||||
if (child == input)
|
if (child == input)
|
||||||
{
|
{
|
||||||
setTitle((IAdaptable) child);
|
setTitle((IAdaptable) child);
|
||||||
}
|
}
|
||||||
}
|
break;
|
||||||
break;
|
case ISystemResourceChangeEvents.EVENT_DELETE:
|
||||||
case ISystemResourceChangeEvents.EVENT_DELETE:
|
removeFromHistory(event.getSource());
|
||||||
case ISystemResourceChangeEvents.EVENT_DELETE_MANY:
|
break;
|
||||||
{
|
case ISystemResourceChangeEvents.EVENT_DELETE_MANY:
|
||||||
Object[] multi = event.getMultiSource();
|
Object[] multi = event.getMultiSource();
|
||||||
for (int i = 0; i < multi.length; i++) {
|
for (int i = 0; i < multi.length; i++) {
|
||||||
// Update the history to remove all references to object
|
// Update the history to remove all references to object
|
||||||
removeFromHistory(multi[i]);
|
removeFromHistory(multi[i]);
|
||||||
}
|
}
|
||||||
}
|
break;
|
||||||
break;
|
default:
|
||||||
default:
|
break;
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue