commit 07ce36ec7fdf0fff9b6fd77953073aded7862de0
Author: Pavlo Solntsev <pavlo.solntsev@gmail.com>
Date:   Thu Jul 13 22:28:33 2017 -0500

    Bug 779815: The pointer wasn't checked for NULL

diff --git a/src/gcal-edit-dialog.c b/src/gcal-edit-dialog.c
index 156e970..5d6fb9b 100644
--- a/src/gcal-edit-dialog.c
+++ b/src/gcal-edit-dialog.c
@@ -811,14 +811,19 @@ gcal_edit_dialog_action_button_clicked (GtkWidget *widget,
       freq = gtk_combo_box_get_active (GTK_COMBO_BOX (dialog->repeat_combo));
 
       remove_recurrence_properties (dialog->event);
-
-      if ((!old_recur && freq != GCAL_RECURRENCE_NO_REPEAT) || old_recur->frequency != freq)
-        dialog->recurrence_changed = TRUE;
+      
+      if(old_recur){
+        if (freq != GCAL_RECURRENCE_NO_REPEAT || old_recur->frequency != freq)
+            dialog->recurrence_changed = TRUE;
+      }
 
       if (freq != GCAL_RECURRENCE_NO_REPEAT)
         {
           GcalRecurrence *recur;
 
+/*! TODO: recur should be checked for NULL before access of the members
+ *  \todo recur should be checked for NULL before access of the members
+ */
           recur = gcal_recurrence_new ();
           recur->frequency = freq;
           recur->limit_type = gtk_combo_box_get_active (GTK_COMBO_BOX (dialog->repeat_duration_combo));
