summarylogtreecommitdiffstats
path: root/null-icaltime.diff
blob: 60539d9bdb12aacc0ca29dd7e467dab99616fbc6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git i/src/gcal-utils.c w/src/gcal-utils.c
index c7646565..8070034c 100644
--- i/src/gcal-utils.c
+++ w/src/gcal-utils.c
@@ -181,6 +181,9 @@ icaltime_to_datetime (const icaltimetype  *date)
   GDateTime *dt;
   GTimeZone *tz;
 
+  if (!date)
+    return NULL;
+
   tz = date->zone ? g_time_zone_new (icaltime_get_tzid (*date)) : g_time_zone_new_utc ();
   dt = g_date_time_new (tz,
                         date->year,