workaround for NullPointerException for some document thumbnails

This commit is contained in:
Chris Forno 2019-10-04 15:50:12 +08:00
parent b35292f107
commit 0008c218ad
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 {