diff --git a/android/src/main/kotlin/com/bhikadia/receive_intent/ReceiveIntentPlugin.kt b/android/src/main/kotlin/com/bhikadia/receive_intent/ReceiveIntentPlugin.kt index 5a1296b..daa171b 100644 --- a/android/src/main/kotlin/com/bhikadia/receive_intent/ReceiveIntentPlugin.kt +++ b/android/src/main/kotlin/com/bhikadia/receive_intent/ReceiveIntentPlugin.kt @@ -42,7 +42,7 @@ class ReceiveIntentPlugin : FlutterPlugin, MethodCallHandler, EventChannel.Strea "fromSignatures" to fromPackageName?.let { getApplicationSignature(context, it) }, "action" to intent.action, "data" to intent.dataString, - "categories" to intent.categories.toList(), + "categories" to intent.categories?.toList(), "extra" to intent.extras?.let { bundleToJSON(it).toString() } ) //Log.e("ReceiveIntentPlugin", "intentMap: $intentMap")