1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-07 17:56:01 +02:00

Fix: avoid NPE

This commit is contained in:
Oleg Krasilnikov 2007-04-18 13:57:11 +00:00
parent 0ace8e6e3f
commit da91fe7a86

View file

@ -93,10 +93,17 @@ public abstract class CLocationTab extends AbstractCPropertyTab {
ent = _ent; ent = _ent;
f[0] = new _Filter(this); f[0] = new _Filter(this);
} }
public String toString() { return getPath().toString(); } public String toString() {
return getPath() == null ?
public IPath getPath() { return ent.isValueWorkspacePath() ? ent.getFullPath() : ent.getLocation(); } EMPTY_STR :
getPath().toString();
}
public IPath getPath() {
return ent.isValueWorkspacePath() ?
ent.getFullPath() :
ent.getLocation();
}
} }
public void createControls(Composite parent) { public void createControls(Composite parent) {