commit e0e1744f146513300ba836462f14a6b408311899
Author: Thomas Mittelstaedt <tmstaedt@t-mittelstaedt.de>
Date:   Sun Jan 17 23:06:07 2010 +0100

    Another case of a pointer not being checked for NULL.

diff --git a/calendar/gui/e-day-view.c b/calendar/gui/e-day-view.c
index ed83c9d..6053ba6 100644
--- a/calendar/gui/e-day-view.c
+++ b/calendar/gui/e-day-view.c
@@ -3702,7 +3702,7 @@ e_day_view_on_main_canvas_motion (GtkWidget *widget,
 		cursor = day_view->normal_cursor;
 
 		/* Check if the event is editable and client is not readonly while changing the cursor */
-		if (event && event->is_editable && e_cal_is_read_only (event->comp_data->client, &read_only, NULL) && !read_only) {
+		if (event && event->comp_data && event->is_editable && e_cal_is_read_only (event->comp_data->client, &read_only, NULL) && !read_only) {
 
 			switch (pos) {
 			case E_CALENDAR_VIEW_POS_LEFT_EDGE:
