Fix crash if popup don't exist

This commit is contained in:
Erwan Croze 2017-04-05 11:24:11 +02:00
parent ace3b74f72
commit 5329d7c6e1

View file

@ -589,7 +589,7 @@ public class AccountPreferencesFragment extends PreferencesListFragment implemen
@Override @Override
public void onAccountCreatorPasswordUpdated(LinphoneAccountCreator accountCreator, LinphoneAccountCreator.RequestStatus status) { public void onAccountCreatorPasswordUpdated(LinphoneAccountCreator accountCreator, LinphoneAccountCreator.RequestStatus status) {
progress.dismiss(); if (progress != null) progress.dismiss();
if (status.equals(LinphoneAccountCreator.RequestStatus.Ok)) { if (status.equals(LinphoneAccountCreator.RequestStatus.Ok)) {
mPrefs.setAccountPassword(n, accountCreator.getPassword()); mPrefs.setAccountPassword(n, accountCreator.getPassword());
PreferenceCategory account = (PreferenceCategory) getPreferenceScreen().findPreference(getString(R.string.pref_sipaccount_key)); PreferenceCategory account = (PreferenceCategory) getPreferenceScreen().findPreference(getString(R.string.pref_sipaccount_key));