Fix an NPE for monkey stability.

Bug: 3283484
This commit is contained in:
Amith Yamasani
2010-12-15 09:43:44 -08:00
parent 3f0f998aa7
commit c948b16e73

View File

@@ -231,6 +231,8 @@ public class ManageAccountsSettings extends AccountPreferenceBase
}
protected void onSyncStateUpdated() {
// Catch any delayed delivery of update messages
if (getActivity() == null) return;
// Set background connection state
final ConnectivityManager connManager = (ConnectivityManager)
getActivity().getSystemService(Context.CONNECTIVITY_SERVICE);