Skip to content

Commit

Permalink
#335 fixing some NPEs
Browse files Browse the repository at this point in the history
  • Loading branch information
spyhunter99 committed Jul 4, 2016
1 parent 658ce31 commit d436504
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Expand Up @@ -58,10 +58,10 @@ private void updateGridlines(){

@Override
public void onDestroyView(){
super.onDestroyView();

activeLatLonGrid.onDetach(mMapView);
activeLatLonGrid=null;

super.onDestroyView();
}

}
Expand Up @@ -111,7 +111,8 @@ public void closeAllInfoWindows(){

@Override
public void onDetach(MapView mapView){
mOverlayManager.onDetach(mapView);
if (mOverlayManager!=null)
mOverlayManager.onDetach(mapView);
mOverlayManager=null;
}

Expand Down

0 comments on commit d436504

Please sign in to comment.