!81 空指针处理

Merge pull request !81 from supershuai90/master
This commit is contained in:
openharmony_ci 2024-06-06 09:27:50 +00:00 committed by Gitee
commit 2e2da81bd1
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -35,6 +35,7 @@ ErrCode AdLoadSendRequestProxy::SendAdLoadRequest(const sptr<AdRequestData> &req
{
if (callback == nullptr) {
ADS_HILOGI(OHOS::Cloud::ADS_MODULE_SERVICE, "callback is null");
return ERR_AD_COMMON_NAPI_CALLBACK_NULL_ERROR;
}
MessageParcel data;
if (!data.WriteRemoteObject(callback->AsObject())) {