Skip to content

Commit

Permalink
Fix negative getColumnIndex
Browse files Browse the repository at this point in the history
  • Loading branch information
tejado committed Sep 18, 2022
1 parent fcc4140 commit 98e3d6a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ public static String getSafDisplayName(Uri uri, Context ctx)
try {
if ((cursor != null) && (cursor.moveToFirst())) {
return cursor.getString(
cursor.getColumnIndex(OpenableColumns.DISPLAY_NAME));
cursor.getColumnIndexOrThrow(OpenableColumns.DISPLAY_NAME));
}
} finally {
if (cursor != null) {
Expand Down

0 comments on commit 98e3d6a

Please sign in to comment.