Mapbox: Fix crash when destroying maps

'setLocationSource' may be called with a null parameter:

E AndroidRuntime: Caused by: java.lang.IllegalArgumentException: Parameter specified as non-null is null: method kotlin.jvm.internal.Intrinsics.checkParameterIsNotNull, parameter locationSource
E AndroidRuntime: at org.microg.gms.maps.mapbox.GoogleMapImpl.setLocationSource(Unknown Source:2)
This commit is contained in:
Vincent Vidal 2020-10-06 15:04:43 +02:00 committed by Marvin W
parent fed85b1ca4
commit 5b06366cd5
1 changed files with 1 additions and 1 deletions

View File

@ -402,7 +402,7 @@ class GoogleMapImpl(private val context: Context, var options: GoogleMapOptions)
return null
}
override fun setLocationSource(locationSource: ILocationSourceDelegate) {
override fun setLocationSource(locationSource: ILocationSourceDelegate?) {
Log.d(TAG, "unimplemented Method: setLocationSource")
}