Check identity on LinphoneLogin

This commit is contained in:
Erwan Croze 2017-05-03 15:31:33 +02:00
parent 13074d973f
commit 674331ef4c

View file

@ -358,6 +358,10 @@ private static AssistantActivity instance;
try { try {
String identity = proxyConfig.getIdentity(); String identity = proxyConfig.getIdentity();
if (identity == null) {
LinphoneUtils.displayErrorAlert(getString(R.string.error), this);
return;
}
identity = identity.replace("?", accountCreator.getUsername()); identity = identity.replace("?", accountCreator.getUsername());
addr = LinphoneCoreFactory.instance().createLinphoneAddress(identity); addr = LinphoneCoreFactory.instance().createLinphoneAddress(identity);