diff --git a/android/src/main/java/com/google/android/react/navsdk/NavViewFragment.java b/android/src/main/java/com/google/android/react/navsdk/NavViewFragment.java index 6b1b088..cd8a003 100644 --- a/android/src/main/java/com/google/android/react/navsdk/NavViewFragment.java +++ b/android/src/main/java/com/google/android/react/navsdk/NavViewFragment.java @@ -24,6 +24,7 @@ import androidx.annotation.Nullable; import androidx.core.app.ActivityCompat; +import com.facebook.react.bridge.Arguments; import com.facebook.react.bridge.ReactApplicationContext; import com.facebook.react.bridge.UiThreadUtil; import com.facebook.react.bridge.WritableMap; @@ -697,6 +698,9 @@ public String getEventName() { @Override public WritableMap getEventData() { + if (eventData == null) { + return Arguments.createMap(); + } return eventData; } }