Fix race condition bug with account preference
This commit is contained in:
parent
243358ac03
commit
ca572887b2
1 changed files with 2 additions and 5 deletions
|
@ -512,11 +512,8 @@ public class LinphonePreferences {
|
|||
}
|
||||
|
||||
public String getAccountDisplayName(int n) {
|
||||
LinphoneAddress addr = getProxyConfig(n).getAddress();
|
||||
if(addr != null) {
|
||||
return addr.getDisplayName();
|
||||
}
|
||||
return null;
|
||||
if (getProxyConfig(n) == null || getProxyConfig(n).getAddress() == null) return null;
|
||||
return getProxyConfig(n).getAddress().getDisplayName();
|
||||
}
|
||||
|
||||
public void setAccountUserId(int n, String userId) {
|
||||
|
|
Loading…
Reference in a new issue