From: huayongxu <49056704+huayongxu@users.noreply.github.com> Date: Mon, 10 May 2021 09:19:06 +0000 (+0800) Subject: [NUI] Fix crash issue when favicon is null. (#3012) X-Git-Tag: submit/tizen_6.0/20210511.005240~1^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ed217d33a37527b45f20ecce7239ce90cf434a4b;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git [NUI] Fix crash issue when favicon is null. (#3012) --- diff --git a/src/Tizen.NUI/src/internal/WebView.cs b/src/Tizen.NUI/src/internal/WebView.cs index b9409d2ea..c94156fff 100755 --- a/src/Tizen.NUI/src/internal/WebView.cs +++ b/src/Tizen.NUI/src/internal/WebView.cs @@ -645,7 +645,7 @@ namespace Tizen.NUI get { global::System.IntPtr imageView = Interop.WebView.WebView_GetFavicon(swigCPtr); - if (NDalicPINVOKE.SWIGPendingException.Pending) + if (imageView == IntPtr.Zero) return null; return new ImageView(imageView, false); }