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

Commit dba92c2a authored by Steven Moreland's avatar Steven Moreland Committed by Gerrit Code Review
Browse files

Merge "libbinder: warn on null binder read"

parents 517d7c87 dce98241
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -1862,6 +1862,7 @@ status_t Parcel::readStrongBinder(sp<IBinder>* val) const
{
{
    status_t status = readNullableStrongBinder(val);
    status_t status = readNullableStrongBinder(val);
    if (status == OK && !val->get()) {
    if (status == OK && !val->get()) {
        ALOGW("Expecting binder but got null!");
        status = UNEXPECTED_NULL;
        status = UNEXPECTED_NULL;
    }
    }
    return status;
    return status;