Merge "Throw OOM exception with error status" into tm-qpr-dev am: 37351f403a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/21412453 Change-Id: I22c536180a94ec8f8b2b577ecdd7a1fd371ffb84 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -428,7 +428,7 @@ static jlong nativeCreate(JNIEnv* env, jclass clazz, jobject sessionObj,
|
||||
jniThrowException(env, "java/lang/IllegalArgumentException", NULL);
|
||||
return 0;
|
||||
} else if (err != NO_ERROR) {
|
||||
jniThrowException(env, OutOfResourcesException, NULL);
|
||||
jniThrowException(env, OutOfResourcesException, statusToString(err).c_str());
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user