summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Steven Moreland <smoreland@google.com> 2022-03-15 22:34:45 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2022-03-15 22:34:45 +0000
commitdba92c2a356cb601fd3daf51fedce526c4752684 (patch)
treeb39d0cd75d49130127a33dbb353acd35dcb05f7f
parent517d7c87dca7f239458d38ab7896021c124711c4 (diff)
parentdce98241e8ffa59a0ca30628d25d67e86e66f387 (diff)
Merge "libbinder: warn on null binder read"
-rw-r--r--libs/binder/Parcel.cpp1
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;