commit | 270df536e2a386715740cdef39de18d5a1c523b8 | [log] [tgz] |
---|---|---|
author | Treehugger Robot <treehugger-gerrit@google.com> | Fri Jan 07 07:18:00 2022 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Fri Jan 07 07:18:00 2022 +0000 |
tree | a3936eb98db5c9a0a9fce7c3d5a001ed8819c606 | |
parent | 3a20cc3f55ef3be2b955c8df13b2c7d19b8ab17a [diff] | |
parent | 3284c9aec4becacb8d132f7a3a832fe813887a51 [diff] |
Merge "Verify op_ is not a nullptr" am: 2d63764c34 am: a8b92e548f am: 3284c9aec4 Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1940573 Change-Id: Ieef79940fb6165e66e6a70bd9527b6d3669cb4ee
diff --git a/security/keymint/aidl/vts/functional/KeyMintAidlTestBase.cpp b/security/keymint/aidl/vts/functional/KeyMintAidlTestBase.cpp index 3695f1e..02462fc 100644 --- a/security/keymint/aidl/vts/functional/KeyMintAidlTestBase.cpp +++ b/security/keymint/aidl/vts/functional/KeyMintAidlTestBase.cpp
@@ -537,6 +537,9 @@ Status result; if (!output) return ErrorCode::UNEXPECTED_NULL_POINTER; + EXPECT_NE(op_, nullptr); + if (!op_) return ErrorCode::UNEXPECTED_NULL_POINTER; + std::vector<uint8_t> o_put; result = op_->update(vector<uint8_t>(input.begin(), input.end()), {}, {}, &o_put);