Merge branch 'master' of belledonne-communications.com:linphone-private

This commit is contained in:
Simon Morlat 2010-06-25 15:50:14 +02:00
commit c271f261bd

View file

@ -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);
}