summaryrefslogtreecommitdiff
path: root/libs/binder/Parcel.cpp
diff options
context:
space:
mode:
author Steven Moreland <smoreland@google.com> 2022-03-11 00:26:10 +0000
committer Steven Moreland <smoreland@google.com> 2022-03-11 00:27:20 +0000
commitdce98241e8ffa59a0ca30628d25d67e86e66f387 (patch)
tree84cbdf15c5da2a99f380fc5fe716c182843705b5 /libs/binder/Parcel.cpp
parent2362edf7a6c9c7d756d6e573c4d44837e16fed36 (diff)
libbinder: warn on null binder read
This error does happen a few times during boot, but it can be pretty hard to discover (evidenced from a few email threads). Bug: N/A Test: boot Change-Id: I650319cb8bdfb9eb65c079077fbf834cbc66b7f9
Diffstat (limited to 'libs/binder/Parcel.cpp')
-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;