!47527 增加指针判空

Merge pull request !47527 from 渠冲冲/1103
This commit is contained in:
openharmony_ci 2024-11-04 11:17:50 +00:00 committed by Gitee
commit 282e4527e4
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -64,6 +64,7 @@ void ShowScaleAnimation(const RefPtr<RenderContext>& context, const RefPtr<MenuT
[]() { DragEventActuator::ExecutePreDragAction(PreDragStatus::PREVIEW_LIFT_FINISHED); });
context->UpdateTransformScale(VectorF(previewBeforeAnimationScale, previewBeforeAnimationScale));
CHECK_NULL_VOID(menuPattern);
auto menuWrapper = menuPattern->GetMenuWrapper();
CHECK_NULL_VOID(menuWrapper);
auto menuWrapperPattern = menuWrapper->GetPattern<MenuWrapperPattern>();