Loading include/binder/Parcel.h +4 −2 Original line number Original line Diff line number Diff line Loading @@ -586,10 +586,12 @@ status_t Parcel::readNullableStrongBinder(sp<T>* val) const { if (ret == OK) { if (ret == OK) { *val = interface_cast<T>(tmp); *val = interface_cast<T>(tmp); if (val->get() == nullptr) { if (val->get() == nullptr && tmp.get() != nullptr) { return UNKNOWN_ERROR; ret = UNKNOWN_ERROR; } } } } return ret; } } template<typename T, typename U> template<typename T, typename U> Loading Loading
include/binder/Parcel.h +4 −2 Original line number Original line Diff line number Diff line Loading @@ -586,10 +586,12 @@ status_t Parcel::readNullableStrongBinder(sp<T>* val) const { if (ret == OK) { if (ret == OK) { *val = interface_cast<T>(tmp); *val = interface_cast<T>(tmp); if (val->get() == nullptr) { if (val->get() == nullptr && tmp.get() != nullptr) { return UNKNOWN_ERROR; ret = UNKNOWN_ERROR; } } } } return ret; } } template<typename T, typename U> template<typename T, typename U> Loading