From ce2f066a09bcd662671671763caa797b3c44b6e2 Mon Sep 17 00:00:00 2001 From: huayongxu <49056704+huayongxu@users.noreply.github.com> Date: Mon, 10 May 2021 15:36:18 +0800 Subject: [PATCH] Fix crash issue when favicon is null. (#3010) Co-authored-by: Jiyun Yang --- src/Tizen.NUI/src/internal/WebView/WebView.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Tizen.NUI/src/internal/WebView/WebView.cs b/src/Tizen.NUI/src/internal/WebView/WebView.cs index 3c303f4..3d327f1 100755 --- a/src/Tizen.NUI/src/internal/WebView/WebView.cs +++ b/src/Tizen.NUI/src/internal/WebView/WebView.cs @@ -1188,7 +1188,7 @@ namespace Tizen.NUI get { global::System.IntPtr imageView = Interop.WebView.GetFavicon(SwigCPtr); - if (imageView == IntPtr.Zero) + if (imageView == null || imageView == IntPtr.Zero) return null; return new ImageView(imageView, false); } -- 2.7.4