From 6289f5799cacd9722433ecac29e2d5609a0e3b01 Mon Sep 17 00:00:00 2001 From: Seungha Son Date: Fri, 22 Sep 2017 18:11:37 +0900 Subject: [PATCH] Fix svace issue Value Handle, which is result of method invocation with possible null return value, is dereferenced in method call Handle.Dispose() Change-Id: Ib334114092a9752185ad28d4a38cc989a6c2a162 Signed-off-by: Seungha Son --- .../Tizen.Applications.Notifications/Notification.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Tizen.Applications.Notification/Tizen.Applications.Notifications/Notification.cs b/src/Tizen.Applications.Notification/Tizen.Applications.Notifications/Notification.cs index 3064dca..4f0a97a 100755 --- a/src/Tizen.Applications.Notification/Tizen.Applications.Notifications/Notification.cs +++ b/src/Tizen.Applications.Notification/Tizen.Applications.Notifications/Notification.cs @@ -411,7 +411,7 @@ namespace Tizen.Applications.Notifications return; } - if (disposing) + if (disposing && Handle != null && Handle.IsInvalid == false) { Handle.Dispose(); } -- 2.7.4