[android] - avoid null pointer when quickly closing activity for attribution click handling

This commit is contained in:
Tobrun
2019-01-11 17:14:10 +01:00
committed by Tobrun
parent 1185fe0d31
commit 4db55c3ace

View File

@@ -380,7 +380,9 @@ public class MapView extends FrameLayout implements NativeMapView.ViewCallback {
*/
@UiThread
public void onStop() {
attributionClickListener.onStop();
if (attributionClickListener != null) {
attributionClickListener.onStop();
}
if (mapboxMap != null) {
// map was destroyed before it was started