[NUI] Fix to null check menuStyle in Menu
authorJaehyun Cho <jae_hyun.cho@samsung.com>
Mon, 25 Apr 2022 07:55:37 +0000 (16:55 +0900)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Tue, 26 Apr 2022 04:41:13 +0000 (13:41 +0900)
Check null pointer of menuStyle in Menu.

src/Tizen.NUI.Components/Controls/Menu.cs

index 51e220e..b3851ca 100755 (executable)
@@ -475,7 +475,7 @@ namespace Tizen.NUI.Components
             ExcludeLayouting = true;
 
             Content = CreateDefaultContent();
-            if (styleApplied)
+            if (styleApplied && (menuStyle != null))
             {
                 Content.ApplyStyle(menuStyle.Content);
             }