1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-03 07:05:24 +02:00

[187732] getting a parent from a non-existant file is still important for local

This commit is contained in:
David McKnight 2007-05-23 16:37:45 +00:00
parent 835a63b776
commit a99711b80a

View file

@ -569,15 +569,13 @@ public class SystemViewRemoteFileAdapter
{
//System.out.println("Inside getParent for: "+element);
IRemoteFile file = (IRemoteFile) element;
if (file.exists())
{
IRemoteFile parent = file.getParentRemoteFile();
if ((parent != null) && parent.getAbsolutePath().equals(file.getAbsolutePath()))
// should never happen but sometimes it does, leading to infinite loop.
parent = null;
return parent;
}
return null;
}
/**