Check proxy existance before getting the domain

This commit is contained in:
Erwan Croze 2016-11-14 14:46:50 +01:00
parent aa7f3abae9
commit b1dcfb2b7b

View file

@ -577,7 +577,8 @@ public class LinphonePreferences {
} }
public String getAccountDomain(int n) { public String getAccountDomain(int n) {
return getProxyConfig(n).getDomain(); LinphoneProxyConfig proxyConf = getProxyConfig(n);
return (proxyConf != null) ? proxyConf.getDomain() : "";
} }
public void setAccountProxy(int n, String proxy) { public void setAccountProxy(int n, String proxy) {