[Calendar] Fix svace defect WGID#14567 (#673)
authorsameer prakash pradhan <sameer.p.pradhan@gmail.com>
Fri, 18 Jan 2019 10:36:47 +0000 (16:06 +0530)
committerWonYoung Choi <wy80.choi@samsung.com>
Fri, 18 Jan 2019 10:36:47 +0000 (19:36 +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;