added a null check for mMap in displayWelcomeDialog()

This commit is contained in:
ricky committed 2011-12-10 18:30:43 +00:00
1 parent 6b93a02a82
commit eaf308a567
2 files changed
+2 -1

No files matched your search

@@ -129,7 +129,8 @@ public class Main extends FragmentActivity implements RegistrationCallback, MapF
if(!locationManager.isProviderEnabled(LocationManager.GPS_PROVIDER))
enableGPSdialog(Main.this);
else
mMap.setGPSDialogEnabled(true);
if(mMap != null)
mMap.setGPSDialogEnabled(true);
/*
* the map is no longer needed, clear it from memory