Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

Commit c13e3ec

Browse files
committed
fix error if pick image from yandex disk
1 parent 8603d2d commit c13e3ec

File tree

1 file changed

+3
-0
lines changed
  • packages/image_picker/android/src/main/java/io/flutter/plugins/imagepicker

1 file changed

+3
-0
lines changed

packages/image_picker/android/src/main/java/io/flutter/plugins/imagepicker/FileUtils.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,9 @@ private static String getDataColumn(
119119
final int column_index = cursor.getColumnIndexOrThrow(column);
120120
return cursor.getString(column_index);
121121
}
122+
} catch (Exception ignored) {
123+
//catch exception, if uri from yandex.disk for example
124+
//return null and try get from remote Uri
122125
} finally {
123126
if (cursor != null) {
124127
cursor.close();

0 commit comments

Comments
 (0)