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

[ios] Check for valid superview to avoid crash on iOS 9 #14529

Merged
merged 2 commits into from
Apr 30, 2019

Conversation

julianrex
Copy link
Contributor

Checks for a valid superview before installing constraints. This avoids a crash on iOS 9.

The crash was reproduced with ios-sdk-examples on an iPad running iOS 9.3. (And this PR was tested on the same.)

/cc @lloydsheng @chloekraw

@julianrex julianrex added the iOS Mapbox Maps SDK for iOS label Apr 26, 2019
@julianrex julianrex requested review from friedbunny, fabian-guerra and a team April 26, 2019 23:40
@friedbunny friedbunny added crash needs changelog Indicates PR needs a changelog entry prior to merging. labels Apr 27, 2019
Copy link
Contributor

@friedbunny friedbunny left a comment

Choose a reason for hiding this comment

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

LGTM. Where the changelog ends up going depends on if we think this deserves a 4.10.x patch release, I’d suppose.

Shakes fist at the naming of didMoveToSuperview.

@julianrex julianrex force-pushed the jrex/did-move-to-superview-constraints branch from 8fb4c2b to e978408 Compare April 30, 2019 19:26
@julianrex julianrex removed the needs changelog Indicates PR needs a changelog entry prior to merging. label Apr 30, 2019
@julianrex julianrex merged commit b15b783 into master Apr 30, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
crash iOS Mapbox Maps SDK for iOS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants