mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-19 06:05:56 +02:00
trivial change - null pointer check
This commit is contained in:
parent
7f470070eb
commit
0373d5104e
1 changed files with 13 additions and 4 deletions
|
@ -1115,10 +1115,19 @@ public abstract class RemoteFile implements IRemoteFile, IAdaptable, Comparable
|
||||||
String path = this.getAbsolutePath();
|
String path = this.getAbsolutePath();
|
||||||
//String otherHost = other.getHostName();
|
//String otherHost = other.getHostName();
|
||||||
|
|
||||||
String alias1 = this.getParentRemoteFileSubSystem().getHostAliasName();
|
IRemoteFileSubSystem ss1 = this.getParentRemoteFileSubSystem();
|
||||||
String alias2 = other.getParentRemoteFileSubSystem().getHostAliasName();
|
IRemoteFileSubSystem ss2 = other.getParentRemoteFileSubSystem();
|
||||||
|
|
||||||
//return getHostName().equals(otherHost) && path.equals(otherPath);
|
String alias1 = ""; //$NON-NLS-1$
|
||||||
|
if (ss1 != null){
|
||||||
|
alias1 = ss1.getHostAliasName();
|
||||||
|
}
|
||||||
|
|
||||||
|
String alias2 = "";
|
||||||
|
if (ss2 != null){
|
||||||
|
alias2 = ss2.getHostAliasName();
|
||||||
|
}
|
||||||
|
|
||||||
return alias1.equals(alias2) && path.equals(otherPath);
|
return alias1.equals(alias2) && path.equals(otherPath);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Reference in a new issue