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

Commit c19703fe authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix a nullptr deref in ref VHAL." into main

parents 08e77843 7eae30d5
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -494,7 +494,11 @@ void DefaultVehicleHal::onContinuousPropertyTimer(const std::vector<int32_t>& pr
            }

            for (int areaId : areaIds) {
                auto v = pool.obtain(*mPropStore->refreshTimestamp(property, areaId));
                auto refreshedProp = mPropStore->refreshTimestamp(property, areaId);
                VehiclePropValuePtr v = nullptr;
                if (refreshedProp != nullptr) {
                    v = pool.obtain(*refreshedProp);
                }
                if (v.get()) {
                    events.push_back(std::move(v));
                }