aboutsummaryrefslogtreecommitdiffstats
path: root/e-util
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2011-04-13 22:29:05 +0800
committerRodrigo Moya <rodrigo@gnome-db.org>2011-06-30 00:41:54 +0800
commitadb682530f168493371030c2e3c1fd96e5b8a172 (patch)
tree354856b10be10a52e4b62c5be7ccc9101f7fa207 /e-util
parent8b7af0458c0371f8b8c4dd3560f09fdb464a364a (diff)
downloadgsoc2013-evolution-adb682530f168493371030c2e3c1fd96e5b8a172.tar
gsoc2013-evolution-adb682530f168493371030c2e3c1fd96e5b8a172.tar.gz
gsoc2013-evolution-adb682530f168493371030c2e3c1fd96e5b8a172.tar.bz2
gsoc2013-evolution-adb682530f168493371030c2e3c1fd96e5b8a172.tar.lz
gsoc2013-evolution-adb682530f168493371030c2e3c1fd96e5b8a172.tar.xz
gsoc2013-evolution-adb682530f168493371030c2e3c1fd96e5b8a172.tar.zst
gsoc2013-evolution-adb682530f168493371030c2e3c1fd96e5b8a172.zip
Don't crash on missing EAlert definitions.
Diffstat (limited to 'e-util')
-rw-r--r--e-util/e-alert.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/e-util/e-alert.c b/e-util/e-alert.c
index 30afa8a9fe..12a92565a9 100644
--- a/e-util/e-alert.c
+++ b/e-util/e-alert.c
@@ -553,6 +553,7 @@ alert_constructed (GObject *object)
alert = E_ALERT (object);
definition = alert->priv->definition;
+ g_return_if_fail (definition != NULL);
e_alert_set_message_type (alert, definition->message_type);
e_alert_set_default_response (alert, definition->default_response);