mirror of
https://gitee.com/openharmony/advertising_ads_framework
synced 2024-11-27 09:00:36 +00:00
Description: 空指针处理
Feature or Bugfix: Bugfix Binary Source: NO Signed-off-by: chenshuai <chenshuai3@huawei.com>
This commit is contained in:
parent
7a13afc887
commit
d4423cd8d1
@ -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())) {
|
||||
|
Loading…
Reference in New Issue
Block a user