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

Commit f7249f81 authored by Greg Kaiser's avatar Greg Kaiser
Browse files

Spatializer: Avoid null pointer dereference

Bug: 188502620
Test: TreeHugger
Change-Id: Ib8f0a239e2271981febd9a11da20d7631a9daec3
parent 05a9b71c
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -536,7 +536,8 @@ Status Spatializer::setParameter(int key, const std::vector<unsigned char>& valu
}

Status Spatializer::getParameter(int key, std::vector<unsigned char> *value) {
    ALOGV("%s key %d value size %d", __func__, key, (int)value->size());
    ALOGV("%s key %d value size %d", __func__, key,
          (value != nullptr ? (int)value->size() : -1));
    if (value == nullptr) {
        binderStatusFromStatusT(BAD_VALUE);
    }