From 8560a25750e40f8fb51a8abfa44aad0392ebb209 Mon Sep 17 00:00:00 2001 From: luomy Date: Fri, 1 Sep 2023 12:16:16 +0800 Subject: [PATCH] fix(ios): determines if node is null --- .../ios/renderer/component/text/NativeRenderObjectText.mm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/renderer/native/ios/renderer/component/text/NativeRenderObjectText.mm b/renderer/native/ios/renderer/component/text/NativeRenderObjectText.mm index ea867657f15..04c683e748b 100644 --- a/renderer/native/ios/renderer/component/text/NativeRenderObjectText.mm +++ b/renderer/native/ios/renderer/component/text/NativeRenderObjectText.mm @@ -986,7 +986,9 @@ - (void)didUpdateNativeRenderSubviews { if (domManager) { int32_t componentTag = [self.componentTag intValue]; auto node = domManager->GetNode(self.rootNode, componentTag); - node->GetLayoutNode()->MarkDirty(); + if (node) { + node->GetLayoutNode()->MarkDirty(); + } } }