mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-02-07 14:18:25 +00:00
Improved getAddress to return null if needed
This commit is contained in:
parent
a442d45309
commit
9dfde257c5
1 changed files with 5 additions and 1 deletions
|
|
@ -60,7 +60,11 @@ class LinphoneFriendImpl implements LinphoneFriend, Serializable {
|
|||
this.setAddress(nativePtr, ((LinphoneAddressImpl)anAddress).nativePtr);
|
||||
}
|
||||
public LinphoneAddress getAddress() {
|
||||
return new LinphoneAddressImpl(getAddress(nativePtr),LinphoneAddressImpl.WrapMode.FromConst);
|
||||
long ptr = getAddress(nativePtr);
|
||||
if (ptr != 0) {
|
||||
return new LinphoneAddressImpl(ptr, LinphoneAddressImpl.WrapMode.FromConst);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
public void setIncSubscribePolicy(SubscribePolicy policy) {
|
||||
synchronized(getSyncObject()){
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue