fix errors in DropboxV2+WebDav implementation

This commit is contained in:
Philipp Crocoll
2016-11-28 11:44:36 +01:00
parent 31f02eca61
commit 08b7e42a33
7 changed files with 82 additions and 14 deletions

View File

@@ -304,9 +304,18 @@ public abstract class Kp2aFileProvider extends BaseFileProvider {
Log.d(CLASSNAME, "parent file is null");
return null;
}
FileEntry e = this.getFileEntryCached(parentPath);
FileEntry e;
try {
e = this.getFileEntryCached(parentPath);
}
catch (Exception ex)
{
ex.printStackTrace();
return null;
}
if (e == null)
return null;
matrixCursor = BaseFileProviderUtils.newBaseFileCursor();
int type = parentPath != null ? BaseFile.FILE_TYPE_DIRECTORY