mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 11:36:00 +00:00
Fix null pointer crash in AIDL radio HAL VTS
Bug: 277531858 Test: atest VtsHalBroadcastradioAidlTargetTest Change-Id: Icb67c27b9a747411a9bfbd48647e6e6046cf5e8d
This commit is contained in:
@@ -997,13 +997,12 @@ TEST_P(BroadcastRadioHalTest, SetConfigFlags) {
|
||||
LOG(DEBUG) << "SetConfigFlags Test";
|
||||
|
||||
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());
|
||||
return *gotValue;
|
||||
return gotValue;
|
||||
};
|
||||
|
||||
auto notSupportedError = resultToInt(Result::NOT_SUPPORTED);
|
||||
|
||||
Reference in New Issue
Block a user