[android] - avoid null pointer when quickly closing activity for attribution click handling
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user