Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
[android] - null check mapboxMap with onStop invocation
Browse files Browse the repository at this point in the history
  • Loading branch information
tobrun committed Oct 23, 2017
1 parent 6dfe4ff commit af90446
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,10 @@ public void onPause() {
*/
@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();
}
Expand Down

0 comments on commit af90446

Please sign in to comment.