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

Commit 28dc02a2 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Return 0 instead of NULL for jlong" am: c3e03c1c

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1945491

Change-Id: I2bc7f32270e5092f1ac1a2617ad5605997678d91
parents f1f63445 c3e03c1c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -67,7 +67,7 @@ public:
        size_t chunkSize = env->GetArrayLength(obj);
        if (chunkSize < (int) (sizeof(Res_png_9patch))) {
            jniThrowRuntimeException(env, "Array too small for chunk.");
            return NULL;
            return 0;
        }

        int8_t* storage = new int8_t[chunkSize];
+1 −1
Original line number Diff line number Diff line
@@ -61,7 +61,7 @@ static jlong createPathDataFromStringPath(JNIEnv* env, jobject, jstring inputStr
    } else {
        delete pathData;
        doThrowIAE(env, result.failureMessage.c_str());
        return NULL;
        return 0;
    }
}