mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-02 20:24:19 +00:00
Fix null pointer crash in AIDL radio HAL VTS am: cf892db1ef am: e065f848d0
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/24133137 Change-Id: Iaa7cfd3e11d99fa6854423e70421db78817fbd21 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -997,13 +997,12 @@ TEST_P(BroadcastRadioHalTest, SetConfigFlags) {
|
|||||||
LOG(DEBUG) << "SetConfigFlags Test";
|
LOG(DEBUG) << "SetConfigFlags Test";
|
||||||
|
|
||||||
auto get = [&](ConfigFlag flag) -> bool {
|
auto get = [&](ConfigFlag flag) -> bool {
|
||||||
bool* gotValue = nullptr;
|
bool gotValue;
|
||||||
|
|
||||||
auto halResult = mModule->isConfigFlagSet(flag, gotValue);
|
auto halResult = mModule->isConfigFlagSet(flag, &gotValue);
|
||||||
|
|
||||||
EXPECT_FALSE(gotValue == nullptr);
|
|
||||||
EXPECT_TRUE(halResult.isOk());
|
EXPECT_TRUE(halResult.isOk());
|
||||||
return *gotValue;
|
return gotValue;
|
||||||
};
|
};
|
||||||
|
|
||||||
auto notSupportedError = resultToInt(Result::NOT_SUPPORTED);
|
auto notSupportedError = resultToInt(Result::NOT_SUPPORTED);
|
||||||
|
|||||||
Reference in New Issue
Block a user