storage manager can be null

Signed-off-by: tobiasKaminsky <[email protected]>
This commit is contained in:
tobiasKaminsky committed 2019-08-26 08:09:04 +02:00
1 parent 56e0fd081b
commit 70ea959983
1 file changed
+4
@@ -747,6 +747,10 @@ public class OCFileListAdapter extends RecyclerView.Adapter<RecyclerView.ViewHol
showShareAvatar = mStorageManager.getCapability(account.name).getVersion().isShareesOnDavSupported();
}
if (mStorageManager == null) {
mStorageManager = new FileDataStorageManager(account, mContext.getContentResolver());
}
if (clear) {
mFiles.clear();
resetLastTimestamp();