evolution r36625 - in trunk/calendar: . gui



Author: abharath
Date: Fri Oct 17 04:52:00 2008
New Revision: 36625
URL: http://svn.gnome.org/viewvc/evolution?rev=36625&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:
   trunk/calendar/ChangeLog
   trunk/calendar/gui/e-calendar-table.c

Modified: trunk/calendar/gui/e-calendar-table.c
==============================================================================
--- trunk/calendar/gui/e-calendar-table.c	(original)
+++ trunk/calendar/gui/e-calendar-table.c	Fri Oct 17 04:52:00 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]