avoid exception for invalid input of getDisplayName, fixes #771

This commit is contained in:
Philipp Crocoll
2019-08-19 14:36:33 +02:00
parent 9f6fea7038
commit 95ce6878e6

View File

@@ -186,7 +186,8 @@ public class GoogleDriveFileStorage extends JavaFileStorageBase {
return displayName;
String[] parts = mAccountLocalPath.split("/");
if (parts.length == 0)
return "";
String part = parts[parts.length-1];
logDebug("parsing part " + part);
int indexOfSeparator = part.lastIndexOf(NAME_ID_SEP);