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 infinite recursion when failing to download shield image #1888

Merged
merged 1 commit into from
Dec 6, 2018

Conversation

1ec5
Copy link
Contributor

@1ec5 1ec5 commented Dec 6, 2018

If there’s no image after the shield downloading operation completes, then there’s no reason to regenerate the attributed text that would embed that image. Bailing instead of regenerating the attributed text heads off infinite recursion that results whenever the shield image URL can’t be reached for some reason, such as the situation described in mapbox/mapbox-directions-swift#322.

Fixes #1887.

/cc @mapbox/navigation-ios @kevinkreiser

If there’s no image after the shield downloading operation completes, then there’s no reason to regenerate the attributed text that would embed that image.
@1ec5 1ec5 added this to the v0.26.0 milestone Dec 6, 2018
@1ec5 1ec5 self-assigned this Dec 6, 2018
@1ec5 1ec5 mentioned this pull request Dec 6, 2018
7 tasks
@1ec5 1ec5 merged commit 1b02e6f into master Dec 6, 2018
@1ec5 1ec5 deleted the 1ec5-shield-error-recursion-1887 branch December 6, 2018 06:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant