mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-06 17:26: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;
|
||||
f[0] = new _Filter(this);
|
||||
}
|
||||
public String toString() { return getPath().toString(); }
|
||||
|
||||
public IPath getPath() { return ent.isValueWorkspacePath() ? ent.getFullPath() : ent.getLocation(); }
|
||||
public String toString() {
|
||||
return getPath() == null ?
|
||||
EMPTY_STR :
|
||||
getPath().toString();
|
||||
}
|
||||
|
||||
public IPath getPath() {
|
||||
return ent.isValueWorkspacePath() ?
|
||||
ent.getFullPath() :
|
||||
ent.getLocation();
|
||||
}
|
||||
}
|
||||
|
||||
public void createControls(Composite parent) {
|
||||
|
|
Loading…
Add table
Reference in a new issue