Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: ensure EventDispatcher always receives non-null data from NavViewEvent #256

Merged

Conversation

jokerttu
Copy link
Contributor

Fixes #252

This PR addresses the issue where the EventDispatcher on Android implementation could potentially receive null data from the NavViewEvent getEventData() method, leading to crashes in specific cases (such as during the onMapReady event).

Changes:
Updated getEventData() in NavViewEvent to return an empty WritableMap when eventData is null.

  • Tests pass
  • Appropriate changes to documentation are included in the PR

@jokerttu jokerttu changed the title fix: ensure EventDispatcher always receives non-null data from NavView fix: ensure EventDispatcher always receives non-null data from NavViewEvent Sep 10, 2024
Copy link
Contributor

@illuminati1911 illuminati1911 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jokerttu jokerttu merged commit 0ee4e8a into googlemaps:main Sep 10, 2024
11 checks passed
@jokerttu jokerttu deleted the fix/event-dispatcher-null-data branch September 10, 2024 13:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0.5.0 not working in Android
3 participants