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

Commit 6ca9ee66 authored by Greg Kaiser's avatar Greg Kaiser
Browse files

Fix null check

Bug: 254050394
Test: TreeHugger
Change-Id: Idf0fc0d68517dab31024603e6b0a6141fb76e47d
(cherry picked from commit 5dec3fda)
parent 89e07825
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -281,7 +281,7 @@ status_t ColorConverter::Image::getYUVPlaneOffsetAndStride(
        size_t *u_stride,
        size_t *v_stride) const {

    if (y_offset == nullptr || v_offset == nullptr || v_offset == nullptr
    if (y_offset == nullptr || u_offset == nullptr || v_offset == nullptr
            || y_stride == nullptr || u_stride == nullptr || v_stride == nullptr) {
        return ERROR_UNSUPPORTED;
    }