summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bridges/source/jni_uno/jni_base.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/bridges/source/jni_uno/jni_base.h b/bridges/source/jni_uno/jni_base.h
index 61fc28479585..3de1898c758a 100644
--- a/bridges/source/jni_uno/jni_base.h
+++ b/bridges/source/jni_uno/jni_base.h
@@ -115,8 +115,11 @@ inline bool JNI_context::assert_no_exception() const
{
if (JNI_FALSE != m_env->ExceptionCheck())
{
+ SAL_WARN("bridges", "unexpected java exception occurred");
+#if OSL_DEBUG_LEVEL > 0
+ m_env->ExceptionDescribe();
+#endif
m_env->ExceptionClear();
- OSL_FAIL( "unexpected java exception occurred!" );
return false;
}
return true;