From 62d385483ff93faa2dfc05ad7234eb5a891e7983 Mon Sep 17 00:00:00 2001 From: Seoyeon Kim Date: Fri, 8 Apr 2022 14:56:58 +0900 Subject: [PATCH] [NUI] Add Null check in Slider Dispose - 'editModeIndicator' of Slider class is not created all the time. So, added Null check for this variable. Signed-off-by: Seoyeon Kim --- src/Tizen.NUI.Components/Controls/Slider.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/Tizen.NUI.Components/Controls/Slider.cs b/src/Tizen.NUI.Components/Controls/Slider.cs index 92e2be8..b1701f1 100755 --- a/src/Tizen.NUI.Components/Controls/Slider.cs +++ b/src/Tizen.NUI.Components/Controls/Slider.cs @@ -1651,8 +1651,11 @@ namespace Tizen.NUI.Components this.TouchEvent -= OnTouchEventForTrack; recoverIndicator = null; - editModeIndicator.Dispose(); - editModeIndicator = null; + if (editModeIndicator != null) + { + editModeIndicator.Dispose(); + editModeIndicator = null; + } } base.Dispose(type); -- 2.7.4