diff --git a/app/src/main/java/com/money/manager/ex/core/docstorage/FileStorageHelper.java b/app/src/main/java/com/money/manager/ex/core/docstorage/FileStorageHelper.java index 038a1d31e..efdd02b12 100644 --- a/app/src/main/java/com/money/manager/ex/core/docstorage/FileStorageHelper.java +++ b/app/src/main/java/com/money/manager/ex/core/docstorage/FileStorageHelper.java @@ -251,13 +251,11 @@ private DocFileMetadata getRemoteMetadata(DatabaseMetadata metadata) { } private DocFileMetadata getRemoteMetadata(Uri uri) { - Context host = _host; - DocFileMetadata result = new DocFileMetadata(); result.Uri = uri.toString(); result.lastModified = new MmxDate(0); - try (Cursor cursor = host.getContentResolver().query(uri, null, null, null, null, null)) { + try (Cursor cursor = _host.getContentResolver().query(uri, null, null, null, null, null)) { if (cursor == null || !cursor.moveToFirst()) { Timber.w("Cursor is null or empty for URI: %s", uri); return result;