diff options
Diffstat (limited to 'Java/phidget_jni.h')
-rw-r--r-- | Java/phidget_jni.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Java/phidget_jni.h b/Java/phidget_jni.h index 2325fd0..61c675d 100644 --- a/Java/phidget_jni.h +++ b/Java/phidget_jni.h @@ -109,6 +109,7 @@ void com_phidgets_##Pname##Phidget_OnLoad(JNIEnv *env) \ if (!(eobj = (*env)->NewObject(env, ph_exception_class, ph_exception_cons, errno, edesc))) \ JNI_ABORT_STDERR("Couldn't get NewObject ph_exception_class"); \ (*env)->Throw(env, (jthrowable)eobj); \ + (*env)->ExceptionClear(env); \ } #define JNI_INDEXED_SETFUNC(pname, fname, lfname, type) \ |