diff options
author | Amith Yamasani <yamasani@google.com> | 2010-12-15 09:43:44 -0800 |
---|---|---|
committer | Amith Yamasani <yamasani@google.com> | 2010-12-15 09:43:44 -0800 |
commit | c948b16e732d0cb5868acfc7fa8d09e3fa083f3c (patch) | |
tree | 066fba9d17cddc0b65cdd58a5d6728487d3da70e /src | |
parent | 3f0f998aa72844e487dd189845289d4c5db88b93 (diff) | |
download | packages_apps_Settings-c948b16e732d0cb5868acfc7fa8d09e3fa083f3c.zip packages_apps_Settings-c948b16e732d0cb5868acfc7fa8d09e3fa083f3c.tar.gz packages_apps_Settings-c948b16e732d0cb5868acfc7fa8d09e3fa083f3c.tar.bz2 |
Fix an NPE for monkey stability.
Bug: 3283484
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/settings/accounts/ManageAccountsSettings.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/com/android/settings/accounts/ManageAccountsSettings.java b/src/com/android/settings/accounts/ManageAccountsSettings.java index 4efe62b..d769cdb 100644 --- a/src/com/android/settings/accounts/ManageAccountsSettings.java +++ b/src/com/android/settings/accounts/ManageAccountsSettings.java @@ -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); |