[Calendar] Fix svace defect WGID#14567 (#668)
authorsameer prakash pradhan <sameer.p.pradhan@gmail.com>
Fri, 18 Jan 2019 04:52:41 +0000 (10:22 +0530)
committerSeungkeun Lee <sngn.lee@samsung.com>
Fri, 18 Jan 2019 04:52:41 +0000 (13:52 +0900)
src/Tizen.Pims.Calendar/Tizen.Pims.Calendar/CalendarStructs.cs

index d549bf2..4398471 100644 (file)
@@ -126,7 +126,7 @@ namespace Tizen.Pims.Calendar
         public override bool Equals(object obj)
         {
             var other = obj as CalendarTime;
-            if (_type != other._type)
+            if (other == null || _type != other._type)
             {
                 Log.Error(Globals.LogTag, "Not to compare with different type");
                 return false;