added a null check for mMap in displayWelcomeDialog()
This commit is contained in:
Binary file not shown.
@@ -129,7 +129,8 @@ public class Main extends FragmentActivity implements RegistrationCallback, MapF
|
|||||||
if(!locationManager.isProviderEnabled(LocationManager.GPS_PROVIDER))
|
if(!locationManager.isProviderEnabled(LocationManager.GPS_PROVIDER))
|
||||||
enableGPSdialog(Main.this);
|
enableGPSdialog(Main.this);
|
||||||
else
|
else
|
||||||
mMap.setGPSDialogEnabled(true);
|
if(mMap != null)
|
||||||
|
mMap.setGPSDialogEnabled(true);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* the map is no longer needed, clear it from memory
|
* the map is no longer needed, clear it from memory
|
||||||
|
|||||||
Reference in New Issue
Block a user