From d213453330844850c88d46435b914002a9b8bb33 Mon Sep 17 00:00:00 2001 From: Jiyun Yang Date: Fri, 27 Jan 2023 14:26:59 +0900 Subject: [PATCH] [NUI] Prevent NullReferenceException when creating TextLabel Signed-off-by: Jiyun Yang --- src/Tizen.NUI/src/public/Theme/ThemeManager.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Tizen.NUI/src/public/Theme/ThemeManager.cs b/src/Tizen.NUI/src/public/Theme/ThemeManager.cs index 615edbe..f41263c 100755 --- a/src/Tizen.NUI/src/public/Theme/ThemeManager.cs +++ b/src/Tizen.NUI/src/public/Theme/ThemeManager.cs @@ -255,12 +255,12 @@ namespace Tizen.NUI /// /// Load a initial component style. /// - internal static ViewStyle GetInitialStyleWithoutClone(string styleName) => themeForInitialize.GetStyle(styleName); + internal static ViewStyle GetInitialStyleWithoutClone(string styleName) => themeForInitialize?.GetStyle(styleName); /// /// Load a initial component style. /// - internal static ViewStyle GetInitialStyleWithoutClone(Type viewType) => themeForInitialize.GetStyle(viewType); + internal static ViewStyle GetInitialStyleWithoutClone(Type viewType) => themeForInitialize?.GetStyle(viewType); /// /// Get a platform installed theme. -- 2.7.4