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

Commit 4cfcfe48 authored by Christopher Wiley's avatar Christopher Wiley Committed by android-build-merger
Browse files

Merge \\"Fix broken readNullableStrongBinder<T> implementation\\" am: 6e81c9a4

am: 869f04be

Change-Id: If89b553521a2ebe384dbd63756364c263c75cfd3
parents 27cd7b25 869f04be
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -586,10 +586,12 @@ status_t Parcel::readNullableStrongBinder(sp<T>* val) const {
    if (ret == OK) {
        *val = interface_cast<T>(tmp);

        if (val->get() == nullptr) {
            return UNKNOWN_ERROR;
        if (val->get() == nullptr && tmp.get() != nullptr) {
            ret = UNKNOWN_ERROR;
        }
    }

    return ret;
}

template<typename T, typename U>