mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-03 23:25:26 +02:00
[235471] DStoreHostFile.getParentPath() breaks API contract for Root files
This commit is contained in:
parent
cf3875ee00
commit
d0c9ca3d48
1 changed files with 5 additions and 0 deletions
|
@ -16,6 +16,7 @@
|
|||
* Xuan Chen (IBM) - [189041] incorrect file name after rename a file inside a zip file - DStore Windows
|
||||
* Xuan Chen (IBM) - [187548] Editor shows incorrect file name after renaming file on Linux dstore
|
||||
* Kevin Doyle (IBM) - [191548] Various NPE fixes
|
||||
* David McKnight (IBM) - [235471] DStoreHostFile.getParentPath() breaks API contract for Root files
|
||||
*******************************************************************************/
|
||||
|
||||
package org.eclipse.rse.internal.services.dstore.files;
|
||||
|
@ -143,6 +144,10 @@ public class DStoreHostFile implements IHostFile, IHostFilePermissionsContainer
|
|||
}
|
||||
else
|
||||
{
|
||||
if (isRoot()){ // IFileService.getParentPath() contract states a root must return null
|
||||
return null;
|
||||
}
|
||||
|
||||
if (_element.getName().length() == 0)
|
||||
{
|
||||
// derive from value
|
||||
|
|
Loading…
Add table
Reference in a new issue