Fix an NPE for monkey stability.
Bug: 3283484
This commit is contained in:
@@ -231,6 +231,8 @@ public class ManageAccountsSettings extends AccountPreferenceBase
|
|||||||
}
|
}
|
||||||
|
|
||||||
protected void onSyncStateUpdated() {
|
protected void onSyncStateUpdated() {
|
||||||
|
// Catch any delayed delivery of update messages
|
||||||
|
if (getActivity() == null) return;
|
||||||
// Set background connection state
|
// Set background connection state
|
||||||
final ConnectivityManager connManager = (ConnectivityManager)
|
final ConnectivityManager connManager = (ConnectivityManager)
|
||||||
getActivity().getSystemService(Context.CONNECTIVITY_SERVICE);
|
getActivity().getSystemService(Context.CONNECTIVITY_SERVICE);
|
||||||
|
Reference in New Issue
Block a user