!48839 代码检视意见修改

Merge pull request !48839 from liuhui/lh_fix_ai
This commit is contained in:
openharmony_ci 2024-11-19 06:39:40 +00:00 committed by Gitee
commit e11fa5d7ad
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 6 additions and 1 deletions

View File

@ -28,6 +28,7 @@ namespace OHOS::Ace::NG {
void PluginModelNG::Create(const RequestPluginInfo& pluginInfo)
{
auto* stack = ViewStackProcessor::GetInstance();
CHECK_NULL_VOID(stack);
int32_t nodeId = stack->ClaimNodeId();
ACE_LAYOUT_SCOPED_TRACE("Create[%s][self:%d]", V2::PLUGIN_ETS_TAG, nodeId);
auto frameNode = PluginNode::GetOrCreatePluginNode(

View File

@ -27,7 +27,9 @@ SecurityUIExtensionProxy::SecurityUIExtensionProxy(
void SecurityUIExtensionProxy::SendData(const RefPtr<WantParamsWrap>& wantParams)
{
CHECK_NULL_VOID(sessionWrapper_);
auto params = DynamicCast<WantParamsWrapOhos>(wantParams)->GetWantParams();
auto paramsWrap = DynamicCast<WantParamsWrapOhos>(wantParams);
CHECK_NULL_VOID(paramsWrap);
auto params = paramsWrap->GetWantParams();
sessionWrapper_->SendDataAsync(params);
}

View File

@ -25,6 +25,7 @@ RefPtr<SessionWrapper> SessionWrapperFactory::CreateSessionWrapper(SessionType s
if (sessionType == SessionType::UI_EXTENSION_ABILITY || sessionType == SessionType::EMBEDDED_UI_EXTENSION) {
return AceType::MakeRefPtr<SessionWrapperImpl>(hostPattern, instanceId, isTransferringCaller, sessionType);
}
TAG_LOGW(AceLogTag::ACE_UIEXTENSIONCOMPONENT, "CreateSessionWrapper return nullptr");
return nullptr;
}
@ -36,6 +37,7 @@ RefPtr<SessionWrapper> SessionWrapperFactory::CreateSessionWrapper(
sessionCreateParam.hostPattern, sessionCreateParam.instanceId,
sessionCreateParam.isTransferringCaller, sessionType);
}
TAG_LOGW(AceLogTag::ACE_UIEXTENSIONCOMPONENT, "CreateSessionWrapper return nullptr");
return nullptr;
}
} // namespace OHOS::Ace::NG