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

Commit 54a1faa7 authored by Jesse Hall's avatar Jesse Hall Committed by Android Git Automerger
Browse files

am 006a601f: Fix reading NULL Surfaces from Parcels

* commit '006a601f':
  Fix reading NULL Surfaces from Parcels
parents a3b948e7 006a601f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -735,7 +735,7 @@ status_t Surface::writeToParcel(
sp<Surface> Surface::readFromParcel(const Parcel& data) {
    sp<IBinder> binder(data.readStrongBinder());
    sp<IGraphicBufferProducer> bp(interface_cast<IGraphicBufferProducer>(binder));
    return new Surface(bp);
    return bp != NULL ? new Surface(bp): NULL;
}

// ----------------------------------------------------------------------------