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

Commit f26f346a authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "JNI ImageReader: propagate exceptions when creating surface planes"

parents d7cf3b48 252f3b20
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -722,6 +722,9 @@ static jobjectArray Image_createSurfacePlanes(JNIEnv* env, jobject thiz,

    LockedImage lockedImg = LockedImage();
    Image_getLockedImage(env, thiz, &lockedImg);
    if (env->ExceptionCheck()) {
        return NULL;
    }
    // Create all SurfacePlanes
    for (int i = 0; i < numPlanes; i++) {
        Image_getLockedImageInfo(env, &lockedImg, i, halReaderFormat,