Prevent NPE in AccountCheckSettings

Bug: 5911793
Change-Id: I2834ab6d139e734baed6790098f0405e6a4e957a
This commit is contained in:
Marc Blank 2012-03-02 12:41:01 -08:00
parent 0888b50158
commit 258ab6ee84

View File

@ -708,7 +708,9 @@ public class AccountCheckSettingsFragment extends Fragment {
public void updateProgress(int progress) {
mProgressString = getProgressString(progress);
AlertDialog dialog = (AlertDialog) getDialog();
dialog.setMessage(mProgressString);
if (dialog != null && mProgressString != null) {
dialog.setMessage(mProgressString);
}
}
@Override