From b668138ae0a5c76bc315ba627821fa84d0dd78a3 Mon Sep 17 00:00:00 2001 From: sawka Date: Fri, 21 Jun 2024 16:59:09 -0700 Subject: [PATCH] fix null ptr --- frontend/app/block/block.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/app/block/block.tsx b/frontend/app/block/block.tsx index c002d715c..07c90e935 100644 --- a/frontend/app/block/block.tsx +++ b/frontend/app/block/block.tsx @@ -97,7 +97,7 @@ function getBlockHeaderText(blockIcon: string, blockData: Block): React.ReactNod } let blockIconElem: React.ReactNode = null; if (!util.isBlank(blockIcon)) { - let iconColor = blockData.meta["icon:color"]; + let iconColor = blockData?.meta?.["icon:color"]; if (iconColor && !iconColor.match(colorRegex)) { iconColor = null; }