Skip to content
This repository has been archived by the owner on Jun 21, 2023. It is now read-only.

fix crash on nil completion #311

Merged

Conversation

gloubibou
Copy link
Contributor

Fences off call to completion() to fix crash on nil completion

@gloubibou gloubibou requested a review from 1ec5 as a code owner May 26, 2020 13:57
@gloubibou gloubibou requested a review from a team May 26, 2020 13:57
Copy link
Contributor

@1ec5 1ec5 left a comment

Choose a reason for hiding this comment

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

Thanks for spotting and fixing this issue! Suggested changelog entry:

  • Fixed a crash when calling -[MGLMapView setVisibleCoordinateBounds:edgePadding:animated:completionHandler:] with a nil completion handler. (#311)

platform/macos/src/MGLMapView.mm Outdated Show resolved Hide resolved
@1ec5 1ec5 added bug Something isn't working macOS labels Jun 4, 2020
Co-authored-by: Minh Nguyễn <mxn@1ec5.org>
@knov knov requested review from jmkiley and fabian-guerra July 6, 2020 15:50
Copy link
Contributor

@fabian-guerra fabian-guerra left a comment

Choose a reason for hiding this comment

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

Thank you for fixing this crash. Just add a changelog entry as described in this comment

@knov knov added this to the release-y milestone Jul 13, 2020
@knov knov requested review from captainbarbosa and removed request for jmkiley July 21, 2020 19:13
@captainbarbosa
Copy link
Contributor

Just kicked off CI - I'll follow up with the changelog entry separately.

@captainbarbosa captainbarbosa merged commit a5afc60 into mapbox:master Jul 22, 2020
@captainbarbosa
Copy link
Contributor

Tests passed. Thanks for your contribution @gloubibou!

captainbarbosa added a commit that referenced this pull request Nov 17, 2020
Co-authored-by: Jordan Kiley <jmkiley@users.noreply.github.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working macOS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants