Fix NPE when changing server settings w/security dialog

Bug: 3302453
Change-Id: I8adb5166598b72f9eb4a26bbe47afc756e764159
This commit is contained in:
Andy Stadler 2010-12-22 19:01:08 -08:00
parent 6ebaa90847
commit d8f1d8f2ff
1 changed files with 5 additions and 2 deletions

View File

@ -346,8 +346,11 @@ public class AccountCheckSettingsFragment extends Fragment {
callbackTarget.onCheckSettingsComplete(
okPressed ? CHECK_SETTINGS_OK : CHECK_SETTINGS_SECURITY_USER_DENY);
// 2. kill self
getFragmentManager().popBackStack();
// 2. kill self if not already killed by callback
FragmentManager fm = getFragmentManager();
if (fm != null) {
fm.popBackStack();
}
}
/**