[NUI] Fix crash issue when favicon is null. (#3012)
authorhuayongxu <49056704+huayongxu@users.noreply.github.com>
Mon, 10 May 2021 09:19:06 +0000 (17:19 +0800)
committerGitHub <noreply@github.com>
Mon, 10 May 2021 09:19:06 +0000 (18:19 +0900)
src/Tizen.NUI/src/internal/WebView.cs

index b9409d2..c94156f 100755 (executable)
@@ -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);
             }