mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-14 12:35:22 +02:00
[229116] NPE in when editing remote file in new workspace
This commit is contained in:
parent
7ee0efdcdb
commit
b715b90eff
1 changed files with 5 additions and 1 deletions
|
@ -32,6 +32,7 @@
|
||||||
* Xuan Chen (IBM) - [225685] NPE when running archive testcases
|
* Xuan Chen (IBM) - [225685] NPE when running archive testcases
|
||||||
* David McKnight (IBM) - [225506] [api][breaking] RSE UI leaks non-API type
|
* David McKnight (IBM) - [225506] [api][breaking] RSE UI leaks non-API type
|
||||||
* Martin Oberhuber (Wind River) - [228774] Improve ElementComparer Performance
|
* Martin Oberhuber (Wind River) - [228774] Improve ElementComparer Performance
|
||||||
|
* David McKnight (IBM) - [229116] NPE in when editing remote file in new workspace
|
||||||
*******************************************************/
|
*******************************************************/
|
||||||
|
|
||||||
package org.eclipse.rse.internal.ui.view;
|
package org.eclipse.rse.internal.ui.view;
|
||||||
|
@ -1674,7 +1675,10 @@ public class SystemTableViewPart extends ViewPart
|
||||||
String[] oldNames = event.getOldNames();
|
String[] oldNames = event.getOldNames();
|
||||||
// right now assuming only one resource
|
// right now assuming only one resource
|
||||||
String oldName = (oldNames == null) ? null : oldNames[0];
|
String oldName = (oldNames == null) ? null : oldNames[0];
|
||||||
boolean referToSameObject = SystemRegistry.isSameObjectByAbsoluteName(input, null, child, oldName);
|
boolean referToSameObject = false;
|
||||||
|
if (oldName != null){
|
||||||
|
referToSameObject = SystemRegistry.isSameObjectByAbsoluteName(input, null, child, oldName);
|
||||||
|
}
|
||||||
|
|
||||||
if (input == child || child instanceof java.util.List || referToSameObject)
|
if (input == child || child instanceof java.util.List || referToSameObject)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue