!40124 【Toast】修复toast解析阴影时无法解析的bug

Merge pull request !40124 from 胡占江/hzj_toast_0810_01
This commit is contained in:
openharmony_ci 2024-08-10 15:55:42 +00:00 committed by Gitee
commit 8b1a710dfb
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -240,7 +240,7 @@ bool GetShadowFromTheme(ShadowStyle shadowStyle, Shadow& shadow)
if (shadowStyle == ShadowStyle::None) {
return true;
}
auto container = Container::Current();
auto container = Container::CurrentSafelyWithCheck();
CHECK_NULL_RETURN(container, false);
auto pipelineContext = container->GetPipelineContext();
CHECK_NULL_RETURN(pipelineContext, false);