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

Commit b9e74864 authored by Winson Chung's avatar Winson Chung
Browse files

Throw OOM exception with error status

Bug: 260283480
Test: Manual
Change-Id: I36e1befbf4fabd8f8204186f563ca8f4ecbaf993
parent 62a7561e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -428,7 +428,7 @@ static jlong nativeCreate(JNIEnv* env, jclass clazz, jobject sessionObj,
        jniThrowException(env, "java/lang/IllegalArgumentException", NULL);
        return 0;
    } else if (err != NO_ERROR) {
        jniThrowException(env, OutOfResourcesException, NULL);
        jniThrowException(env, OutOfResourcesException, statusToString(err).c_str());
        return 0;
    }