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

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

Spatializer: Avoid null pointer dereference am: f7249f81

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

Change-Id: I32aa3a933049bd73e5fb3ec7144f51cf9c855711
parents ad7818c6 f7249f81
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);
    }