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

Commit 45e695a2 authored by Colin Cross's avatar Colin Cross Committed by Android (Google) Code Review
Browse files

Merge "crash if getNativeBuffer() called on NULL GraphicBuffer" into lmp-dev

parents 9b365296 18fae753
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -126,6 +126,7 @@ void GraphicBuffer::dumpAllocationsToSystemLog()

ANativeWindowBuffer* GraphicBuffer::getNativeBuffer() const
{
    LOG_ALWAYS_FATAL_IF(this == NULL, "getNativeBuffer() called on NULL GraphicBuffer");
    return static_cast<ANativeWindowBuffer*>(
            const_cast<GraphicBuffer*>(this));
}