Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bce78d11 authored by Weilin Xu's avatar Weilin Xu Committed by Automerger Merge Worker
Browse files

Fix null pointer crash in AIDL radio HAL VTS am: cf892db1 am: e065f848 am: 050c07c4

parents 13b2b445 050c07c4
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -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);