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

Commit fb3c1a11 authored by Colin Cross's avatar Colin Cross Committed by Android Git Automerger
Browse files

am 45e695a2: Merge "crash if getNativeBuffer() called on NULL GraphicBuffer" into lmp-dev

* commit '45e695a2':
  crash if getNativeBuffer() called on NULL GraphicBuffer
parents f65eb9bf 45e695a2
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));
}