mapbox-gl-native-android
mapbox-gl-native-android copied to clipboard
LocationUpdate throwing IllegalArgumentException on build when null location
https://github.com/mapbox/mapbox-gl-native-android/blob/6db4db9fffb7a696feb92438fa4bb6b21b65d117/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/location/LocationUpdate.java#L111
LocationUpdate.Builder
accepts Location
as null, but later on when calling build()
it will throw an exception if location is null since LocationUpdate
constructor doesn't accept null values https://github.com/mapbox/mapbox-gl-native-android/blob/6db4db9fffb7a696feb92438fa4bb6b21b65d117/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/location/LocationUpdate.java#L143
is this expected? There's still a legit case to pass location as null in here.