1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-04 15:45:25 +02:00

handling for bad name

This commit is contained in:
David McKnight 2006-09-28 19:55:51 +00:00
parent a8d3bd2712
commit 1118888cb2

View file

@ -93,6 +93,14 @@ public class DStoreHostFile implements IHostFile
return parentPath;
}
if (name.length() == 0)
{
String path = _element.getValue();
int lastSep = path.lastIndexOf('/');
name = path.substring(lastSep + 1);
return name;
}
return name;
}
}