[NUI] Prevent NullReferenceException when creating TextLabel
authorJiyun Yang <ji.yang@samsung.com>
Fri, 27 Jan 2023 05:26:59 +0000 (14:26 +0900)
committerJaehyun Cho <jaehyun0cho@gmail.com>
Wed, 1 Feb 2023 07:07:33 +0000 (16:07 +0900)
Signed-off-by: Jiyun Yang <ji.yang@samsung.com>
src/Tizen.NUI/src/public/Theme/ThemeManager.cs

index 615edbe..f41263c 100755 (executable)
@@ -255,12 +255,12 @@ namespace Tizen.NUI
         /// <summary>
         /// Load a initial component style.
         /// </summary>
-        internal static ViewStyle GetInitialStyleWithoutClone(string styleName) => themeForInitialize.GetStyle(styleName);
+        internal static ViewStyle GetInitialStyleWithoutClone(string styleName) => themeForInitialize?.GetStyle(styleName);
 
         /// <summary>
         /// Load a initial component style.
         /// </summary>
-        internal static ViewStyle GetInitialStyleWithoutClone(Type viewType) => themeForInitialize.GetStyle(viewType);
+        internal static ViewStyle GetInitialStyleWithoutClone(Type viewType) => themeForInitialize?.GetStyle(viewType);
 
         /// <summary>
         /// Get a platform installed theme.