[Calendar] Fix svace issue (#62)
authorjeesunhub <iamjs.kim@samsung.com>
Fri, 19 Jan 2018 07:57:27 +0000 (16:57 +0900)
committerGitHub <noreply@github.com>
Fri, 19 Jan 2018 07:57:27 +0000 (16:57 +0900)
src/Tizen.Pims.Calendar/Tizen.Pims.Calendar/CalendarDatabase.cs
src/Tizen.Pims.Calendar/Tizen.Pims.Calendar/CalendarStructs.cs

index b57cb45e89783d6de275beb4177d94ddcbd38e3b..6538bd52f5e9da9e276fa9b905528d1a6e1afcbc 100644 (file)
@@ -373,9 +373,16 @@ namespace Tizen.Pims.Calendar
         {
             CalendarRecord record = null;
             if (list.Count <= 0)
+            {
                 return;
+            }
 
             int[] ids = new int[list.Count];
+            if (ids == null || ids.Length == 0)
+            {
+                return;
+            }
+
             int i;
             uint propertyId = 0;
             list.MoveFirst();
index d549bf2f76fefc34077b13a733fd4b04eee2cec1..3e385602b2a4d68408119dffa644d5f9bdb9a4a5 100644 (file)
@@ -24,7 +24,7 @@ namespace Tizen.Pims.Calendar
     /// <since_tizen> 4 </since_tizen>
     public class CalendarTime:IComparable<CalendarTime>
     {
-        internal int _type;
+        internal int _type = 0;
         internal const int milliseconds = 10000000;
 
         /// <summary>