diff --git a/src/android/startApp.java b/src/android/startApp.java index 3aaf2f3..9c70225 100644 --- a/src/android/startApp.java +++ b/src/android/startApp.java @@ -389,7 +389,7 @@ public void onActivityResult(int requestCode, int resultCode, Intent intent) { result.put("_ACTION_requestCode_", requestCode); result.put("_ACTION_resultCode_", resultCode); - Bundle bundle = intent.getExtras(); + Bundle bundle = intent == null ? null : intent.getExtras(); if (bundle != null) { for (String key : bundle.keySet()) { result.put(key, bundle.get(key)); @@ -405,4 +405,4 @@ public void onActivityResult(int requestCode, int resultCode, Intent intent) { callbackContext.sendPluginResult(pluginResult); } } -} +} \ No newline at end of file