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

Commit 0628631d authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "cameraserver hidl: Skip vendor ids with tag count <=0 for getCameraVendorTagSections."

parents 0c204df7 925a27fe
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -279,6 +279,9 @@ Return<void> HidlCameraService::getCameraVendorTagSections(getCameraVendorTagSec
        size_t numSections = sectionNames->size();
        std::vector<std::vector<HVendorTag>> tagsBySection(numSections);
        int tagCount = desc->getTagCount();
        if (tagCount <= 0) {
            continue;
        }
        std::vector<uint32_t> tags(tagCount);
        desc->getTagArray(tags.data());
        for (int i = 0; i < tagCount; i++) {