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

Commit 45d65e7d authored by David Jacobo's avatar David Jacobo Committed by Android (Google) Code Review
Browse files

Merge "Add null check in PowerAdvisor::supportsPowerHintSession"

parents 8d1b9eed 65a2c197
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -187,7 +187,7 @@ bool PowerAdvisor::supportsPowerHintSession() {
    if (!mSupportsPowerHint.has_value()) {
        std::lock_guard lock(mPowerHalMutex);
        HalWrapper* const halWrapper = getPowerHal();
        mSupportsPowerHint = halWrapper->supportsPowerHintSession();
        mSupportsPowerHint = halWrapper && halWrapper->supportsPowerHintSession();
    }
    return *mSupportsPowerHint;
}