Merge pull request #2495 from jekor/master

workaround for NullPointerException for some document thumbnails
This commit is contained in:
Dominik Schürmann 2019-10-22 16:22:29 +02:00 committed by GitHub
commit ea023aaf18
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -220,7 +220,7 @@ public class FileHelper {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
try {
return DocumentsContract.getDocumentThumbnail(context.getContentResolver(), uri, size, null);
} catch (FileNotFoundException e) {
} catch (Exception e) {
return null;
}
} else {