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:
parent
835a63b776
commit
a99711b80a
1 changed files with 2 additions and 4 deletions
|
@ -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;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue