!48640 ai检视修复

Merge pull request !48640 from wangkailong/jing
This commit is contained in:
openharmony_ci 2024-11-18 02:39:34 +00:00 committed by Gitee
commit d363917940
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 2 additions and 1 deletions

View File

@ -77,6 +77,7 @@ void PaContainer::InitializeBackend(SrcLanguage language)
RefPtr<PaContainer> PaContainer::GetContainer(int32_t instanceId)
{
auto container = AceEngine::Get().GetContainer(instanceId);
CHECK_NULL_RETURN(container, nullptr);
return AceType::DynamicCast<PaContainer>(container);
}

View File

@ -170,7 +170,7 @@ napi_value StartTimeoutOrInterval(napi_env env, napi_callback_info info, bool is
napi_ref value = nullptr;
std::shared_ptr<NativeReference> valueRef;
napi_create_reference(env, argv[index], 1, &value);
valueRef.reset(reinterpret_cast<NativeReference*>(ref));
valueRef.reset(reinterpret_cast<NativeReference*>(value));
task.PushArgs(valueRef);
}