https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/287
(cherry picked from commit
312f0a735dea35925da0d80a916d0d9cf542932e)
Change-Id: I2830f50706a5818375745a406d3ff4b7f8ecdb1c
Signed-off-by: Harry <h.marappa@samsung.com>
Signed-off-by: Amit KS <amit.s12@samsung.com>
isAttached = true;
}
+ CACheckJNIException(env);
+
jclass jni_IpInterface = (*env)->FindClass(env, "org/iotivity/ca/CaIpInterface");
if (!jni_IpInterface)
{
(*env)->CallStaticVoidMethod(env, jni_IpInterface, jni_InterfaceDestroyMethod);
- if ((*env)->ExceptionCheck(env))
+ if (CACheckJNIException(env))
{
OIC_LOG(ERROR, TAG, "destroyIpInterface has failed");
- (*env)->ExceptionDescribe(env);
- (*env)->ExceptionClear(env);
goto error_exit;
}