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
This commit is contained in:
Treehugger Robot
2022-01-07 07:18:00 +00:00
committed by Automerger Merge Worker

View File

@@ -537,6 +537,9 @@ ErrorCode KeyMintAidlTestBase::Update(const string& input, string* output) {
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);