Fix crash issue when favicon is null. (#3010)
authorhuayongxu <49056704+huayongxu@users.noreply.github.com>
Mon, 10 May 2021 07:36:18 +0000 (15:36 +0800)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Fri, 21 May 2021 07:37:43 +0000 (16:37 +0900)
Co-authored-by: Jiyun Yang <ji.yang@samsung.com>
src/Tizen.NUI/src/internal/WebView/WebView.cs

index 3c303f4..3d327f1 100755 (executable)
@@ -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);
             }