mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-18 03:48:08 +00:00
Fix crash when proxyconfig is null
This commit is contained in:
parent
8ad53f0dbb
commit
f8a8883b46
1 changed files with 1 additions and 0 deletions
|
|
@ -742,6 +742,7 @@ public class LinphonePreferences {
|
|||
|
||||
public void setAccountEnabled(int n, boolean enabled) {
|
||||
LinphoneProxyConfig prxCfg = getProxyConfig(n);
|
||||
if (prxCfg == null) return;
|
||||
prxCfg.edit();
|
||||
prxCfg.enableRegister(enabled);
|
||||
prxCfg.done();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue