Skip to content

Commit 1ba712b

Browse files
android: updated java ShowFileChooserResponse fromMap method
1 parent 48a9734 commit 1ba712b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

flutter_inappwebview_android/android/src/main/java/com/pichillilorenzo/flutter_inappwebview_android/types/ShowFileChooserResponse.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,11 @@ public ShowFileChooserResponse(boolean handledByClient, @Nullable List<String> f
1717
this.filePaths = filePaths;
1818
}
1919

20-
public static ShowFileChooserResponse fromMap(Map<String, Object> map) {
20+
@Nullable
21+
public static ShowFileChooserResponse fromMap(@Nullable Map<String, Object> map) {
22+
if (map == null) {
23+
return null;
24+
}
2125
boolean handledByClient = (boolean) map.get("handledByClient");
2226
List<String> filePaths = (List<String>) map.get("filePaths");
2327
return new ShowFileChooserResponse(handledByClient, filePaths);

0 commit comments

Comments
 (0)