diff --git a/jni/Post4.c b/jni/Post4.c index 7c01503..b13c3f3 100644 --- a/jni/Post4.c +++ b/jni/Post4.c @@ -923,7 +923,7 @@ Java_post4_jni_Post4_p4Create(JNIEnv *env, jobject self, jobject opts) (*env)->DeleteLocalRef(env, clazz); if (ctx == NULL) { - (*env)->Throw(env, (*env)->FindClass(env, "java/lang/OutOfMemory")); + (*env)->FatalError(env, "cannot create Post4 context"); } p4HookInit(ctx, jHooks);