修复静态告警

Signed-off-by: lipeicheng <lipeicheng5@huawei.com>
Change-Id: Ife518a1d77b495f244d7b3c1839e5e858c4948fd
This commit is contained in:
lipeicheng 2024-11-19 17:20:06 +08:00
parent ec73625a07
commit eef12186f6
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) {