mapbox-gl-native-android icon indicating copy to clipboard operation
mapbox-gl-native-android copied to clipboard

LocationUpdate throwing IllegalArgumentException on build when null location

Open ealfonso93 opened this issue 2 years ago • 0 comments

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.

ealfonso93 avatar Sep 22 '21 15:09 ealfonso93