calendarui/caleneditor/src/caleneditor.cpp
changeset 45 b6db4fd4947b
parent 18 c198609911f9
child 51 0b38fc5b94c6
child 58 ef813d54df51
--- a/calendarui/caleneditor/src/caleneditor.cpp	Mon May 03 12:30:32 2010 +0300
+++ b/calendarui/caleneditor/src/caleneditor.cpp	Mon Jun 28 15:22:02 2010 +0530
@@ -81,6 +81,9 @@
  */
 void CalenEditor::edit(AgendaEntry entry, bool launchCalendar)
 {
+	if(entry.isNull()) {
+		return;
+	}
 	d_ptr->edit(entry, launchCalendar);
 }
 
@@ -118,6 +121,9 @@
 void CalenEditor::create(AgendaEntry entry, bool launchCalendar, 
                          CalenEditor::CreateType type)
 {
+	if(entry.isNull()) {
+		return;
+	}
 	d_ptr->create(type, entry, launchCalendar);
 }