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

Commit 786c4cab authored by Greg Kaiser's avatar Greg Kaiser Committed by Automerger Merge Worker
Browse files

Spatializer: Avoid null pointer dereference am: f7249f81 am: f859b1ef

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/av/+/15879863

Change-Id: I7485158f4eb02ea8dd8a0ab539629318103962c9
parents 705ac9e4 f859b1ef
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);
    }