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

Commit 8a0595f4 authored by Yangster's avatar Yangster
Browse files

Fix the nullptr bug after move operation.

Test: passed
Change-Id: I1433b59ffe8fef1b26c424a535c30a4d1e15dff2
parent a7d81598
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -248,8 +248,8 @@ void CountMetricProducer::flushCounterIfNeeded(const uint64_t eventTimeNs) {
        proto->write(FIELD_TYPE_INT64 | FIELD_ID_COUNT, (long long)counter.second);

        auto& bucketList = mPastBucketProtos[counter.first];
        bucketList.push_back(std::move(proto));
        mByteSize += proto->size();
        bucketList.push_back(std::move(proto));

        VLOG("metric %lld, dump key value: %s -> %d", mMetric.metric_id(), counter.first.c_str(),
             counter.second);