Merge "Return 0 instead of NULL for jlong"
This commit is contained in:
@@ -67,7 +67,7 @@ public:
|
|||||||
size_t chunkSize = env->GetArrayLength(obj);
|
size_t chunkSize = env->GetArrayLength(obj);
|
||||||
if (chunkSize < (int) (sizeof(Res_png_9patch))) {
|
if (chunkSize < (int) (sizeof(Res_png_9patch))) {
|
||||||
jniThrowRuntimeException(env, "Array too small for chunk.");
|
jniThrowRuntimeException(env, "Array too small for chunk.");
|
||||||
return NULL;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int8_t* storage = new int8_t[chunkSize];
|
int8_t* storage = new int8_t[chunkSize];
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ static jlong createPathDataFromStringPath(JNIEnv* env, jobject, jstring inputStr
|
|||||||
} else {
|
} else {
|
||||||
delete pathData;
|
delete pathData;
|
||||||
doThrowIAE(env, result.failureMessage.c_str());
|
doThrowIAE(env, result.failureMessage.c_str());
|
||||||
return NULL;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user