1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-04 23:05:47 +02:00

deleted elements should return "" for name

This commit is contained in:
David McKnight 2007-01-04 20:18:40 +00:00
parent 26b427d43a
commit 87b0615a93

View file

@ -235,6 +235,11 @@ public class DStoreHostFile implements IHostFile
public String getAbsolutePath() public String getAbsolutePath()
{ {
String name = _element.getName(); String name = _element.getName();
if (name == null)
{
// this element is deleted
return "";
}
if (name.length() == 0) if (name.length() == 0)
{ {
return _element.getValue(); return _element.getValue();