mirror of
https://github.com/nextcloud/android.git
synced 2024-11-29 10:49:04 +03:00
add null check
This commit is contained in:
parent
ca7350fa8a
commit
2f60b75fc5
1 changed files with 3 additions and 1 deletions
|
@ -189,7 +189,9 @@ public final class FileStorageUtils {
|
|||
|
||||
public static String getParentPath(String remotePath) {
|
||||
String parentPath = new File(remotePath).getParent();
|
||||
if (parentPath != null) {
|
||||
parentPath = parentPath.endsWith(OCFile.PATH_SEPARATOR) ? parentPath : parentPath + OCFile.PATH_SEPARATOR;
|
||||
}
|
||||
return parentPath;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue