!48918 修复静态告警

Merge pull request !48918 from 189******51/master
This commit is contained in:
openharmony_ci 2024-11-20 11:36:32 +00:00 committed by Gitee
commit aaf85b50d4
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 2 additions and 0 deletions

View File

@ -310,6 +310,7 @@ RefPtr<FrameNode> SheetView::BuildMainTitle(RefPtr<FrameNode> sheetNode, NG::She
RefPtr<FrameNode> SheetView::BuildSubTitle(RefPtr<FrameNode> sheetNode, NG::SheetStyle& sheetStyle)
{
CHECK_NULL_RETURN(sheetNode, nullptr);
auto pattern = sheetNode->GetPattern<SheetPresentationPattern>();
CHECK_NULL_RETURN(pattern, nullptr);
auto subtitleId = pattern->GetSubtitleId();

View File

@ -65,6 +65,7 @@ RefPtr<StepperComponent> StepperComposedElement::GetStepperComponent() const
void StepperComposedElement::UpdateChildWithSlot(int32_t slot, const RefPtr<Component>& newComponent)
{
auto stepperComponent = GetStepperComponent();
CHECK_NULL_VOID(stepperComponent);
stepperComponent->InsertChild(slot, newComponent);
auto renderStepper = GetInspectorElement<RenderStepper>(StepperElement::TypeId());
if (!renderStepper) {