snowplow / snowplow-android-tracker

Snowplow event tracker for Android. Add analytics to your Android apps and games
http://snowplowanalytics.com
Apache License 2.0
110 stars 63 forks source link

Prevent crash when Locale returns invalid language code #628

Closed mscwilson closed 1 year ago

mscwilson commented 1 year ago

Describe the bug An Android device is returning an invalid, i.e. not part of ISO-639, language code from Locale. This is causing a crash during DeviceInfoMonitor initialisation when the platform context entity values are determined.

To Reproduce Set the Locale to an unassigned code, e.g. "dk", then create a PlatformContext.

Device information (please complete the following information):