1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-04 15:45:25 +02:00

[229116] NPE in when editing remote file in new workspace

This commit is contained in:
David McKnight 2008-04-28 17:23:58 +00:00
parent 7ee0efdcdb
commit b715b90eff

View file

@ -32,6 +32,7 @@
* Xuan Chen (IBM) - [225685] NPE when running archive testcases
* David McKnight (IBM) - [225506] [api][breaking] RSE UI leaks non-API type
* 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;
@ -1674,7 +1675,10 @@ public class SystemTableViewPart extends ViewPart
String[] oldNames = event.getOldNames();
// right now assuming only one resource
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)
{