aboutsummaryrefslogtreecommitdiff
path: root/libjava/jni.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/jni.cc')
-rw-r--r--libjava/jni.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/libjava/jni.cc b/libjava/jni.cc
index cd45ab8..020f7e8 100644
--- a/libjava/jni.cc
+++ b/libjava/jni.cc
@@ -357,7 +357,11 @@ _Jv_JNI_PopSystemFrame (JNIEnv *env)
_Jv_JNI_PopLocalFrame (env, NULL, MARK_SYSTEM);
if (env->ex)
- throw env->ex;
+ {
+ jthrowable t = env->ex;
+ env->ex = NULL;
+ throw t;
+ }
}
// This function is used from other template functions. It wraps the