[android] - null checking when invalidating as the invalidate callback can be invoked while the reference to MapView isn't valid anymore. (#8062)
This commit is contained in:
@@ -927,7 +927,9 @@ final class NativeMapView {
|
||||
//
|
||||
|
||||
protected void onInvalidate() {
|
||||
mapView.onInvalidate();
|
||||
if (mapView != null) {
|
||||
mapView.onInvalidate();
|
||||
}
|
||||
}
|
||||
|
||||
protected void onMapChanged(int rawChange) {
|
||||
|
||||
Reference in New Issue
Block a user