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:
parent
0ace8e6e3f
commit
da91fe7a86
1 changed files with 10 additions and 3 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue