From: amitpatel Date: Tue, 17 Oct 2023 08:51:45 +0000 (+0530) Subject: Add safety null check X-Git-Tag: accepted/tizen/unified/20231116.175521~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F40%2F300140%2F2;p=profile%2Fiot%2Fapps%2Fdotnet%2Fnotifications.git Add safety null check Change-Id: Ie8a4fe143a2fc363160b3b863e70c7619bfe3526 --- diff --git a/Notifications/Views/BaseView.cs b/Notifications/Views/BaseView.cs index de8de03..4ed0050 100644 --- a/Notifications/Views/BaseView.cs +++ b/Notifications/Views/BaseView.cs @@ -240,7 +240,8 @@ namespace Notifications.Views noNotificationsText?.Dispose(); noNotificationsText = null; - notificationsView.SelectedItem = null; + if(notificationsView != null) + notificationsView.SelectedItem = null; notificationsView?.Dispose(); notificationsView = null; diff --git a/packaging/org.tizen.notifications-1.0.0.tpk b/packaging/org.tizen.notifications-1.0.0.tpk index 4667862..fdece1f 100644 Binary files a/packaging/org.tizen.notifications-1.0.0.tpk and b/packaging/org.tizen.notifications-1.0.0.tpk differ