catch exception when trying to read display name. fixes #4163

This commit is contained in:
Daniel Gultsch 2021-09-10 18:46:10 +02:00
parent 8d9c51d755
commit d436c5f856
1 changed files with 2 additions and 0 deletions

View File

@ -568,6 +568,8 @@ public final class MimeUtils {
if (cursor != null && cursor.moveToFirst()) { if (cursor != null && cursor.moveToFirst()) {
return cursor.getString(cursor.getColumnIndex(OpenableColumns.DISPLAY_NAME)); return cursor.getString(cursor.getColumnIndex(OpenableColumns.DISPLAY_NAME));
} }
} catch (Exception e) {
return null;
} }
return null; return null;
} }