From: Sjoerd Simons Date: Tue, 21 Jul 2009 23:07:03 +0000 (+0100) Subject: Don't try to update the widgets if no account was selected X-Git-Url: https://git.0d.be/?p=empathy.git;a=commitdiff_plain;h=df1cf218c8a219caa68fc2f95aed1df84a95382e Don't try to update the widgets if no account was selected --- diff --git a/src/empathy-new-chatroom-dialog.c b/src/empathy-new-chatroom-dialog.c index b36d0d4f..219be371 100644 --- a/src/empathy-new-chatroom-dialog.c +++ b/src/empathy-new-chatroom-dialog.c @@ -360,6 +360,10 @@ new_chatroom_dialog_update_widgets (EmpathyNewChatroomDialog *dialog) account_chooser = EMPATHY_ACCOUNT_CHOOSER (dialog->account_chooser); account = empathy_account_chooser_dup_account (account_chooser); + + if (account == NULL) + return; + protocol = empathy_account_get_protocol (account); gtk_entry_set_text (GTK_ENTRY (dialog->entry_server), "");