From: sameer prakash pradhan Date: Fri, 18 Jan 2019 10:36:47 +0000 (+0530) Subject: [Calendar] Fix svace defect WGID#14567 (#673) X-Git-Tag: submit/tizen_5.0/20190118.104003~1^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=38bcd4c4764c2af48b9ba129c4da11ef67664032;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git [Calendar] Fix svace defect WGID#14567 (#673) --- diff --git a/src/Tizen.Pims.Calendar/Tizen.Pims.Calendar/CalendarStructs.cs b/src/Tizen.Pims.Calendar/Tizen.Pims.Calendar/CalendarStructs.cs index d549bf2f7..43984712f 100644 --- a/src/Tizen.Pims.Calendar/Tizen.Pims.Calendar/CalendarStructs.cs +++ b/src/Tizen.Pims.Calendar/Tizen.Pims.Calendar/CalendarStructs.cs @@ -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;