diff options
author | Dan Winship <danw@src.gnome.org> | 2000-12-08 04:50:09 +0800 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2000-12-08 04:50:09 +0800 |
commit | 907a6cf1e3d9fe091a978488591363516cab6a85 (patch) | |
tree | 5241a3f1dbe739d241ee5905754da13e3f377860 /mail/mail-display.c | |
parent | 33150f282cd0c80bb429d934849f9199390e0e4a (diff) | |
download | gsoc2013-evolution-907a6cf1e3d9fe091a978488591363516cab6a85.tar gsoc2013-evolution-907a6cf1e3d9fe091a978488591363516cab6a85.tar.gz gsoc2013-evolution-907a6cf1e3d9fe091a978488591363516cab6a85.tar.bz2 gsoc2013-evolution-907a6cf1e3d9fe091a978488591363516cab6a85.tar.lz gsoc2013-evolution-907a6cf1e3d9fe091a978488591363516cab6a85.tar.xz gsoc2013-evolution-907a6cf1e3d9fe091a978488591363516cab6a85.tar.zst gsoc2013-evolution-907a6cf1e3d9fe091a978488591363516cab6a85.zip |
Make the iTip hack spew a g_warning and not crash if you have no identity
* mail-display.c (on_object_requested): Make the iTip hack spew a
g_warning and not crash if you have no identity configured. To be
revisited.
svn path=/trunk/; revision=6845
Diffstat (limited to 'mail/mail-display.c')
-rw-r--r-- | mail/mail-display.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mail/mail-display.c b/mail/mail-display.c index 6f21db8f6c..a16401a995 100644 --- a/mail/mail-display.c +++ b/mail/mail-display.c @@ -585,8 +585,8 @@ on_object_requested (GtkHTML *html, GtkHTMLEmbedded *eb, gpointer data) MailConfigIdentity *id; id = mail_config_get_default_identity (); - - g_assert (id != NULL); + if (!id) + g_warning ("No identity configured!"); CORBA_exception_init (&ev); @@ -595,7 +595,7 @@ on_object_requested (GtkHTML *html, GtkHTMLEmbedded *eb, gpointer data) bonobo_property_bag_client_set_value_string (prop_bag, "from_address", from_address, &ev); bonobo_property_bag_client_set_value_string (prop_bag, "my_address", - id->address, &ev); + id ? id->address : "", &ev); g_free(from_address); CORBA_exception_free (&ev); } |