Skip to content

fix: prevent crash when tapping marker without snippet on iOS#568

Open
jokerttu wants to merge 1 commit intomainfrom
fix/not-guarded-marker-snippet-string-on-ios
Open

fix: prevent crash when tapping marker without snippet on iOS#568
jokerttu wants to merge 1 commit intomainfrom
fix/not-guarded-marker-snippet-string-on-ios

Conversation

@jokerttu
Copy link
Copy Markdown
Contributor

Adds nil guard on iOS implementaiton for marker.snippet in handleMarkerClick: and handleMarkerInfoWindowTapped: to prevent NULL pointer dereference crash when tapping markers without a snippet set.

Fixes #559

Pre-launch Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I signed the CLA.
  • I listed at least one issue that this PR fixes in the description above.
  • I updated/added relevant documentation
  • I added new tests to check the change I am making
  • All existing and new tests are passing.

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.

iOS crash: NULL pointer dereference in handleMarkerClick due to nil marker.snippet

2 participants