diff options
| author | 2022-01-13 00:45:18 +0000 | |
|---|---|---|
| committer | 2022-01-13 00:45:18 +0000 | |
| commit | ee32f1583fd4f70c2f32130ad51a6a0be25a1c2a (patch) | |
| tree | 54103c675135ada2d819cb75ec4b1402522fcd8f | |
| parent | bd13c947c1e995f3ad652e22fc00125776669c0c (diff) | |
| parent | 28dc02a29b2788c3bc867838e1c4f5ed9ecd5cfd (diff) | |
Merge "Return 0 instead of NULL for jlong" am: c3e03c1c3d am: 28dc02a29b
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1945491
Change-Id: I8d5a6bb874760a3b66696d0e6998a4887e2e5ef6
| -rw-r--r-- | libs/hwui/jni/NinePatch.cpp | 2 | ||||
| -rw-r--r-- | libs/hwui/jni/android_util_PathParser.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/libs/hwui/jni/NinePatch.cpp b/libs/hwui/jni/NinePatch.cpp index 6942017d5f27..3ca457f1a6a7 100644 --- a/libs/hwui/jni/NinePatch.cpp +++ b/libs/hwui/jni/NinePatch.cpp @@ -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]; diff --git a/libs/hwui/jni/android_util_PathParser.cpp b/libs/hwui/jni/android_util_PathParser.cpp index 72995efb1c21..8cbb70ed2c86 100644 --- a/libs/hwui/jni/android_util_PathParser.cpp +++ b/libs/hwui/jni/android_util_PathParser.cpp @@ -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; } } |