mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-27 07:59:20 +00:00
fix LinphoneAddress.setDisplay with null value
This commit is contained in:
parent
f342c26cd8
commit
d32f638f27
1 changed files with 2 additions and 2 deletions
|
|
@ -562,9 +562,9 @@ extern "C" void Java_org_linphone_core_LinphoneAddressImpl_setDisplayName(JNIEnv
|
|||
,jobject thiz
|
||||
,jlong address
|
||||
,jstring jdisplayName) {
|
||||
const char* displayName = env->GetStringUTFChars(jdisplayName, NULL);
|
||||
const char* displayName = jdisplayName!= NULL?env->GetStringUTFChars(jdisplayName, NULL):NULL;
|
||||
linphone_address_set_display_name((LinphoneAddress*)address,displayName);
|
||||
env->ReleaseStringUTFChars(jdisplayName, displayName);
|
||||
if (displayName != NULL) env->ReleaseStringUTFChars(jdisplayName, displayName);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue