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(google-maps): Added null check to addMarkers method #1571

Merged
merged 2 commits into from
May 9, 2023

Conversation

AE1NS
Copy link
Contributor

@AE1NS AE1NS commented May 3, 2023

This PR adds a null check to the addMarkers method for Android. googleMap in line 183 can be null here, when the map is destroyed but the method is still processing. Then googleMapMarker is also null which crashs in line 191.

Closes #1570

@AE1NS AE1NS force-pushed the addmarkers-null-check branch 3 times, most recently from f10c4f3 to 71eb6c7 Compare May 4, 2023 13:30
@jcesarmobile jcesarmobile merged commit 76e89a9 into ionic-team:main May 9, 2023
8 checks passed
@AE1NS AE1NS deleted the addmarkers-null-check branch May 10, 2023 05:42
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.

[@capacitor/google-maps] Android app crash caused by addMarkers
3 participants