mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-09 10:05:24 +02:00
handling for bad name
This commit is contained in:
parent
a8d3bd2712
commit
1118888cb2
1 changed files with 8 additions and 0 deletions
|
@ -93,6 +93,14 @@ public class DStoreHostFile implements IHostFile
|
||||||
|
|
||||||
return parentPath;
|
return parentPath;
|
||||||
}
|
}
|
||||||
|
if (name.length() == 0)
|
||||||
|
{
|
||||||
|
String path = _element.getValue();
|
||||||
|
int lastSep = path.lastIndexOf('/');
|
||||||
|
name = path.substring(lastSep + 1);
|
||||||
|
return name;
|
||||||
|
}
|
||||||
|
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue