[android] - null check mapboxMap with onStop invocation

This commit is contained in:
Tobrun
2017-10-23 06:21:26 +02:00
committed by Tobrun
parent 6dfe4ffaf1
commit af90446758

View File

@@ -369,7 +369,10 @@ public class MapView extends FrameLayout {
*/
@UiThread
public void onStop() {
mapboxMap.onStop();
if (mapboxMap != null) {
// map was destroyed before it was started
mapboxMap.onStop();
}
ConnectivityReceiver.instance(getContext()).deactivate();
FileSource.getInstance(getContext()).deactivate();
}