diff --git a/tests/inheritance/1.0/default/Fetcher.cpp b/tests/inheritance/1.0/default/Fetcher.cpp index 28dffaa793..74f8d074e9 100644 --- a/tests/inheritance/1.0/default/Fetcher.cpp +++ b/tests/inheritance/1.0/default/Fetcher.cpp @@ -23,7 +23,7 @@ Return selectService(bool sendRemote, CB &_hidl_cb, sp &local) { if (sendRemote) { toSend = IChild::getService("child"); if (!toSend->isRemote()) { - return Status::fromExceptionCode(Status::EX_ILLEGAL_STATE); + toSend = nullptr; } } else { toSend = local;