aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/dialogs/event-page.c
diff options
context:
space:
mode:
authorJP Rosevear <jpr@novell.com>2004-06-04 23:09:29 +0800
committerJP Rosevear <jpr@src.gnome.org>2004-06-04 23:09:29 +0800
commitd9cb73cf7eec91a0ee784d98b7995c970c7c74d8 (patch)
treeb9451864927020b94fe97726cf6a941a490ace04 /calendar/gui/dialogs/event-page.c
parentb2e6995ed5d14936b50d41e3d975326cf732be3a (diff)
downloadgsoc2013-evolution-d9cb73cf7eec91a0ee784d98b7995c970c7c74d8.tar
gsoc2013-evolution-d9cb73cf7eec91a0ee784d98b7995c970c7c74d8.tar.gz
gsoc2013-evolution-d9cb73cf7eec91a0ee784d98b7995c970c7c74d8.tar.bz2
gsoc2013-evolution-d9cb73cf7eec91a0ee784d98b7995c970c7c74d8.tar.lz
gsoc2013-evolution-d9cb73cf7eec91a0ee784d98b7995c970c7c74d8.tar.xz
gsoc2013-evolution-d9cb73cf7eec91a0ee784d98b7995c970c7c74d8.tar.zst
gsoc2013-evolution-d9cb73cf7eec91a0ee784d98b7995c970c7c74d8.zip
guard against the text value being NULL
2004-06-04 JP Rosevear <jpr@novell.com> * gui/dialogs/task-page.c (task_page_fill_widgets): guard against the text value being NULL * gui/dialogs/event-page.c (event_page_fill_widgets): add guards here as well svn path=/trunk/; revision=26211
Diffstat (limited to 'calendar/gui/dialogs/event-page.c')
-rw-r--r--calendar/gui/dialogs/event-page.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/calendar/gui/dialogs/event-page.c b/calendar/gui/dialogs/event-page.c
index a367396b93..cd7bbe12ce 100644
--- a/calendar/gui/dialogs/event-page.c
+++ b/calendar/gui/dialogs/event-page.c
@@ -445,10 +445,12 @@ event_page_fill_widgets (CompEditorPage *page, ECalComponent *comp)
e_dialog_editable_set (priv->location, location);
e_cal_component_get_description_list (comp, &l);
- if (l) {
- text = *(ECalComponentText *)l->data;
+ if (l && l->data) {
+ ECalComponentText *dtext;
+
+ dtext = l->data;
gtk_text_buffer_set_text (gtk_text_view_get_buffer (GTK_TEXT_VIEW (priv->description)),
- text.value, -1);
+ dtext->value ? dtext->value : "", -1);
}
e_cal_component_free_text_list (l);