Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 56f752ac authored by Steven Moreland's avatar Steven Moreland
Browse files

libbinder_ndk: AIBinder_isRemote(nullptr) -> false

Was originally true, however, there is nothing remote about a nullptr.

Bug: 111445392
Test: atest android.binder.cts
Change-Id: I14a58860e1b891f98b1718bfe6fe655ac5f1390a
parent 90090213
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -302,7 +302,7 @@ AIBinder* AIBinder_new(const AIBinder_Class* clazz, void* args) {

bool AIBinder_isRemote(const AIBinder* binder) {
    if (binder == nullptr) {
        return true;
        return false;
    }

    return binder->isRemote();