From dce98241e8ffa59a0ca30628d25d67e86e66f387 Mon Sep 17 00:00:00 2001 From: Steven Moreland Date: Fri, 11 Mar 2022 00:26:10 +0000 Subject: 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 --- libs/binder/Parcel.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'libs/binder/Parcel.cpp') 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* val) const { status_t status = readNullableStrongBinder(val); if (status == OK && !val->get()) { + ALOGW("Expecting binder but got null!"); status = UNEXPECTED_NULL; } return status; -- cgit v1.2.3-59-g8ed1b