Fix crash which happened sometime on remove of proxy config

This commit is contained in:
Erwan Croze 2016-11-23 11:53:13 +01:00
parent d08be6e6c7
commit c0b32a738f

View file

@ -278,8 +278,10 @@ class LinphoneCoreImpl implements LinphoneCore {
} }
public synchronized void removeProxyConfig(LinphoneProxyConfig proxyCfg) { public synchronized void removeProxyConfig(LinphoneProxyConfig proxyCfg) {
isValid(); isValid();
if (proxyCfg != null) {
removeProxyConfig(nativePtr, ((LinphoneProxyConfigImpl) proxyCfg).nativePtr); removeProxyConfig(nativePtr, ((LinphoneProxyConfigImpl) proxyCfg).nativePtr);
} }
}
public synchronized void clearAuthInfos() { public synchronized void clearAuthInfos() {
isValid(); isValid();
clearAuthInfos(nativePtr); clearAuthInfos(nativePtr);