evolution r37252 - branches/gnome-2-24/composer



Author: mcrha
Date: Thu Feb 12 10:32:43 2009
New Revision: 37252
URL: http://svn.gnome.org/viewvc/evolution?rev=37252&view=rev

Log:
2009-02-12  Milan Crha  <mcrha redhat com>

	** Fix for bug #567089

	* e-msg-composer.c: (get_signature_html):
	Do not crash when no From set yet.



Modified:
   branches/gnome-2-24/composer/ChangeLog
   branches/gnome-2-24/composer/e-msg-composer.c

Modified: branches/gnome-2-24/composer/e-msg-composer.c
==============================================================================
--- branches/gnome-2-24/composer/e-msg-composer.c	(original)
+++ branches/gnome-2-24/composer/e-msg-composer.c	Thu Feb 12 10:32:43 2009
@@ -1295,12 +1295,17 @@
 			text = e_msg_composer_get_sig_file_content (signature->filename, format_html);
 		}
 	} else {
+		EAccount *account;
 		EAccountIdentity *id;
 		gchar *organization;
 		gchar *address;
 		gchar *name;
 
-		id = e_composer_header_table_get_account (table)->id;
+		account = e_composer_header_table_get_account (table);
+		if (!account)
+			return NULL;
+
+		id = account->id;
 		address = id->address ? camel_text_to_html (id->address, CONVERT_SPACES, 0) : NULL;
 		name = id->name ? camel_text_to_html (id->name, CONVERT_SPACES, 0) : NULL;
 		organization = id->organization ? camel_text_to_html (id->organization, CONVERT_SPACES, 0) : NULL;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]