Fixed crash when going into account settings

This commit is contained in:
Sylvain Berfini 2017-05-29 10:38:30 +02:00
parent d9f6a045ed
commit 11b77c269b

View file

@ -338,7 +338,7 @@ public class AccountPreferencesFragment extends PreferencesListFragment implemen
if (LinphoneManager.getLcIfManagerNotDestroyedOrNull() != null && if (LinphoneManager.getLcIfManagerNotDestroyedOrNull() != null &&
LinphoneManager.getLc().getProxyConfigList() != null && LinphoneManager.getLc().getProxyConfigList() != null &&
LinphoneManager.getLc().getProxyConfigList().length > n) { LinphoneManager.getLc().getProxyConfigList().length > n) {
proxyConfig = (LinphoneProxyConfig) LinphoneManager.getLc().getProxyConfigList()[n].getNatPolicy(); proxyConfig = (LinphoneProxyConfig) LinphoneManager.getLc().getProxyConfigList()[n];
} }
accountCreator = LinphoneCoreFactory.instance().createAccountCreator(LinphoneManager.getLc() accountCreator = LinphoneCoreFactory.instance().createAccountCreator(LinphoneManager.getLc()