diff options
| author | 2022-03-15 22:34:45 +0000 | |
|---|---|---|
| committer | 2022-03-15 22:34:45 +0000 | |
| commit | dba92c2a356cb601fd3daf51fedce526c4752684 (patch) | |
| tree | b39d0cd75d49130127a33dbb353acd35dcb05f7f | |
| parent | 517d7c87dca7f239458d38ab7896021c124711c4 (diff) | |
| parent | dce98241e8ffa59a0ca30628d25d67e86e66f387 (diff) | |
Merge "libbinder: warn on null binder read"
| -rw-r--r-- | libs/binder/Parcel.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/binder/Parcel.cpp b/libs/binder/Parcel.cpp index 504c6c2d83..a217a157c9 100644 --- a/libs/binder/Parcel.cpp +++ b/libs/binder/Parcel.cpp @@ -1862,6 +1862,7 @@ status_t Parcel::readStrongBinder(sp<IBinder>* val) const { status_t status = readNullableStrongBinder(val); if (status == OK && !val->get()) { + ALOGW("Expecting binder but got null!"); status = UNEXPECTED_NULL; } return status; |