Do not call setName on the friend if there is no address
This commit is contained in:
parent
338a6c730c
commit
f015c0330f
2 changed files with 3 additions and 2 deletions
|
@ -443,7 +443,9 @@ public class LinphoneContact implements Serializable, Comparable<LinphoneContact
|
||||||
friend.addPhoneNumber(noa.getValue());
|
friend.addPhoneNumber(noa.getValue());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
friend.setName(fullName);
|
if (friend.getAddress() != null) {
|
||||||
|
friend.setName(fullName);
|
||||||
|
}
|
||||||
friend.done();
|
friend.done();
|
||||||
|
|
||||||
if (friend.getAddress() != null) {
|
if (friend.getAddress() != null) {
|
||||||
|
|
|
@ -1413,7 +1413,6 @@ public class LinphoneManager implements LinphoneCoreListener, LinphoneChatMessag
|
||||||
if (sExited || instance == null) {
|
if (sExited || instance == null) {
|
||||||
// Can occur if the UI thread play a posted event but in the meantime the LinphoneManager was destroyed
|
// Can occur if the UI thread play a posted event but in the meantime the LinphoneManager was destroyed
|
||||||
// Ex: stop call and quickly terminate application.
|
// Ex: stop call and quickly terminate application.
|
||||||
Log.w("Trying to get linphone core while LinphoneManager already destroyed or not created");
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
return getLc();
|
return getLc();
|
||||||
|
|
Loading…
Reference in a new issue