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

Harden map events creation #12405

Merged
merged 1 commit into from
Jul 17, 2018
Merged

Conversation

LukasPaczos
Copy link
Contributor

Closes #12404.

MapEventFactory's constructor requires a Context provided by the MapboxTelemetry. Below change ensures that the telemetry is initialized before creating the event.

This might not resolve the crash from #12404 itself if the Mapbox#getInstance wasn't called beforehand, but at least it will throw the right exception.

/cc @electrostat

@LukasPaczos LukasPaczos added Android Mapbox Maps SDK for Android telemetry Integration with Mapbox Telemetry libraries labels Jul 17, 2018
@LukasPaczos LukasPaczos added this to the android-v6.3.0 milestone Jul 17, 2018
@LukasPaczos LukasPaczos requested a review from tobrun July 17, 2018 08:41
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Android Mapbox Maps SDK for Android telemetry Integration with Mapbox Telemetry libraries
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Crash while sending telemetry events early in the lifecycle
2 participants