>From b8c2605fdc1cc3dc5b8e5a8bdf7c1ac58d262d3e Mon Sep 17 00:00:00 2001 From: Ben Sartor Date: Wed, 13 May 2015 22:39:25 +0200 Subject: [PATCH 2/3] fixed crash when java sets log handler and an exception is thrown --- coreapi/linphonecore_jni.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coreapi/linphonecore_jni.cc b/coreapi/linphonecore_jni.cc index 126a3f5..8147496 100644 --- a/coreapi/linphonecore_jni.cc +++ b/coreapi/linphonecore_jni.cc @@ -1099,8 +1099,8 @@ private: static inline void handle_possible_java_exception(JNIEnv *env, jobject listener) { if (env->ExceptionCheck()) { - ms_error("Listener %p raised an exception",listener); env->ExceptionClear(); + ms_error("Listener %p raised an exception",listener); } } }; -- 2.1.4