Merge "Fix an NPE for monkey stability."

This commit is contained in:
Amith Yamasani
2010-12-15 09:58:15 -08:00
committed by Android (Google) Code Review

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);