aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-week-view.c
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/gui/e-week-view.c')
-rw-r--r--calendar/gui/e-week-view.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/calendar/gui/e-week-view.c b/calendar/gui/e-week-view.c
index 28ca5ed396..51a292041e 100644
--- a/calendar/gui/e-week-view.c
+++ b/calendar/gui/e-week-view.c
@@ -926,7 +926,7 @@ e_week_view_update_event (EWeekView *week_view,
return;
/* If one non-recurring event was added, we can just add it. */
- if (flags == CHANGE_NEW && !ico->recur) {
+ if (flags == CHANGE_NEW && ico && !ico->recur) {
num_days = week_view->display_month
? E_WEEK_VIEW_MAX_WEEKS * 7 : 7;
if (ico->dtstart < week_view->day_starts[num_days]