evolution r36626 - in branches/gnome-2-24/calendar: . gui



Author: abharath
Date: Fri Oct 17 04:56:10 2008
New Revision: 36626
URL: http://svn.gnome.org/viewvc/evolution?rev=36626&view=rev

Log:
2008-10-17  Milan Crha  <mcrha redhat com>

        ** Fix for bug #530872

        * gui/e-calendar-table.c: (e_calendar_table_on_open_task):
        Check for NULL soon enough to not crash.


Modified:
   branches/gnome-2-24/calendar/ChangeLog
   branches/gnome-2-24/calendar/gui/e-calendar-table.c

Modified: branches/gnome-2-24/calendar/gui/e-calendar-table.c
==============================================================================
--- branches/gnome-2-24/calendar/gui/e-calendar-table.c	(original)
+++ branches/gnome-2-24/calendar/gui/e-calendar-table.c	Fri Oct 17 04:56:10 2008
@@ -1327,9 +1327,12 @@
 	icalproperty *prop;
 
 	comp_data = e_calendar_table_get_selected_comp (cal_table);
+
+	if (!comp_data)
+		return;
+
 	prop = icalcomponent_get_first_property (comp_data->icalcomp, ICAL_ATTENDEE_PROPERTY);
-	if (comp_data)
-		e_calendar_table_open_task (cal_table, comp_data->client, comp_data->icalcomp, prop ? TRUE : FALSE);
+	e_calendar_table_open_task (cal_table, comp_data->client, comp_data->icalcomp, prop ? TRUE : FALSE);
 }
 
 static void



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]