Merge "HIDL: Check error value."

This commit is contained in:
Treehugger Robot
2018-01-19 01:41:08 +00:00
committed by Gerrit Code Review

View File

@@ -391,6 +391,10 @@ static void JHwParcel_native_verifySuccess(JNIEnv *env, jobject thiz) {
Status status;
status_t err = ::android::hardware::readFromParcel(&status, *parcel);
signalExceptionForError(env, err);
if (!status.isOk()) {
signalExceptionForError(env, UNKNOWN_ERROR, true /* canThrowRemoteException */);
}
}
static void JHwParcel_native_release(