Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6f760ee1 authored by Mike Lockwood's avatar Mike Lockwood Committed by Android (Google) Code Review
Browse files

Merge "Catch Java exceptions in the FileObserver JNI code"

parents 4b9f74a2 59d25d00
Loading
Loading
Loading
Loading
+16 −12
Original line number Diff line number Diff line
@@ -84,6 +84,10 @@ static void android_os_fileobserver_observe(JNIEnv* env, jobject object, jint fd
            }

            env->CallVoidMethod(object, method_onEvent, event->wd, event->mask, path);
            if (env->ExceptionCheck()) {
                env->ExceptionDescribe();
                env->ExceptionClear();
            }
            if (path != NULL)
            {
                env->DeleteLocalRef(path);