mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-04-21 02:48:25 +00:00
Add security to prevent liblinphone crash
This commit is contained in:
parent
0351e33d23
commit
fbc8fca2e2
1 changed files with 1 additions and 1 deletions
|
|
@ -608,7 +608,7 @@ public final class LinphoneManager implements LinphoneCoreListener {
|
||||||
String username = getPrefString(getString(R.string.pref_username_key) + key, null);
|
String username = getPrefString(getString(R.string.pref_username_key) + key, null);
|
||||||
String password = getPrefString(getString(R.string.pref_passwd_key) + key, null);
|
String password = getPrefString(getString(R.string.pref_passwd_key) + key, null);
|
||||||
String domain = getPrefString(getString(R.string.pref_domain_key) + key, null);
|
String domain = getPrefString(getString(R.string.pref_domain_key) + key, null);
|
||||||
if (username != null && username.length() > 0) {
|
if (username != null && username.length() > 0 && password != null) {
|
||||||
LinphoneAuthInfo lAuthInfo = LinphoneCoreFactory.instance().createAuthInfo(username, password, null);
|
LinphoneAuthInfo lAuthInfo = LinphoneCoreFactory.instance().createAuthInfo(username, password, null);
|
||||||
mLc.addAuthInfo(lAuthInfo);
|
mLc.addAuthInfo(lAuthInfo);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue