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
This commit is contained in:
Treehugger Robot
2022-01-13 00:45:18 +00:00
committed by Automerger Merge Worker
2 changed files with 2 additions and 2 deletions

View File

@@ -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];

View File

@@ -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;
}
}