Check proxy existance before getting the domain
This commit is contained in:
parent
aa7f3abae9
commit
b1dcfb2b7b
1 changed files with 2 additions and 1 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue