Commit 9cbaf930 authored by's avatar Committed by Uze Choi

[IOT-1040] Fixed for jira issue about RH android.

prevented crash when init is called with null String at address.

Change-Id: I390fdd036e6afae44af36d935564b2fa5045d990
Signed-off-by: default <>
Reviewed-on: default avatarjenkins-iotivity <>
Reviewed-by: default avatarHun-je Yeon <>
Reviewed-by: default avatarMadan Lanka <>
Reviewed-by: default avatarUze Choi <>
parent 51917e87
......@@ -91,17 +91,16 @@ JNIEXPORT jint JNICALL Java_org_iotivity_ResourceHosting_ResourceHosting_OICCoor
JNIEXPORT jint JNICALL Java_org_iotivity_ResourceHosting_ResourceHosting_ResourceHostingInit
(JNIEnv *env, jobject obj,jstring j_addr)
const char* addr = env->GetStringUTFChars(j_addr,NULL);
if (NULL == j_addr)
return (jint)OCSTACK_ERROR;
return (jint)OCSTACK_ERROR;
return (jint)OCSTACK_OK;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment