changeset 7207:439b83f4a833

[gaim-migrate @ 7776] null checking is good committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Thu, 09 Oct 2003 16:11:40 +0000
parents 0b4428f327b5
children e5a03ffc6c26
files src/gtkaccount.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/gtkaccount.c	Thu Oct 09 12:08:44 2003 +0000
+++ b/src/gtkaccount.c	Thu Oct 09 16:11:40 2003 +0000
@@ -584,8 +584,9 @@
 					gaim_account_get_buddy_icon(dialog->account));
 	}
 
-	if (!(dialog->prpl_info->options & OPT_PROTO_MAIL_CHECK) &&
-		!(dialog->prpl_info->options & OPT_PROTO_BUDDY_ICON)) {
+	if (!dialog->prpl_info ||
+			(!(dialog->prpl_info->options & OPT_PROTO_MAIL_CHECK) &&
+		!(dialog->prpl_info->options & OPT_PROTO_BUDDY_ICON))) {
 
 		/* Nothing to see :( aww. */
 		gtk_widget_hide(dialog->user_frame);