未验证 提交 e0417c5c 编写于 作者: O openharmony_ci 提交者: Gitee

!344 add targetObject is nullptr process

Merge pull request !344 from zhangg05283106/cherry-pick-1660916609
......@@ -446,7 +446,9 @@ void BinderInvoker::OnTransaction(const uint8_t *buffer)
auto *refs = reinterpret_cast<IRemoteObject *>(tr->target.ptr);
if ((refs != nullptr) && (tr->cookie) && (refs->AttemptIncStrongRef(this))) {
targetObject = reinterpret_cast<IPCObjectStub *>(tr->cookie);
targetObject->DecStrongRef(this);
if (targetObject != nullptr) {
targetObject->DecStrongRef(this);
}
}
} else {
targetObject = IPCProcessSkeleton::GetCurrent()->GetRegistryObject();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册