diff --git a/calendar/gui/e-day-view.c b/calendar/gui/e-day-view.c
index 8af5ffb..2da2c50 100644
--- a/calendar/gui/e-day-view.c
+++ b/calendar/gui/e-day-view.c
@@ -6367,15 +6367,18 @@ e_day_view_on_text_item_event (GnomeCanvasItem *item,
 
 			pevent = tooltip_get_view_event (day_view, day, event_num);
 
-			pevent->x = ((GdkEventMotion *) event)->x_root;
-			pevent->y = ((GdkEventMotion *) event)->y_root;
-			pevent->tooltip = (GtkWidget *)g_object_get_data (G_OBJECT (day_view), "tooltip-window");
+			/*In case event is out of  bound pevent is NULL*/
+			if(pevent){
+				pevent->x = ((GdkEventMotion *) event)->x_root;
+				pevent->y = ((GdkEventMotion *) event)->y_root;
+				pevent->tooltip = (GtkWidget *)g_object_get_data (G_OBJECT (day_view), "tooltip-window");
 
-			if (pevent->tooltip) {
-				e_calendar_view_move_tip (pevent->tooltip, pevent->x + 16, pevent->y + 16);
-			}
+				if (pevent->tooltip) {
+					e_calendar_view_move_tip (pevent->tooltip, pevent->x + 16, pevent->y + 16);
+				}
 
-			return TRUE;
+				return TRUE;
+			}
 		}
 	default:
 		break;
