update sourcehandler/src/distributed_input_source_handler.cpp.

Signed-off-by: ry521 <renyi50@huawei.com>
This commit is contained in:
ry521
2023-10-08 02:15:22 +00:00
committed by Gitee
parent 9794b78519
commit b77a58d9c1
@@ -135,6 +135,10 @@ void DistributedInputSourceHandler::OnRemoteSourceSvrDied(const wptr<IRemoteObje
DHLOGE("dInputSourceProxy is nullptr.");
return;
}
if (dInputSourceProxy_->AsObject() == nullptr) {
DHLOGE("AsObject is nullptr.");
return;
}
sptr<IRemoteObject> remoteObject = remote.promote();
if (remoteObject == nullptr) {
DHLOGE("OnRemoteDied remote promoted failed");