diff options
-rw-r--r-- | libempathy-gtk/empathy-account-chooser.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libempathy-gtk/empathy-account-chooser.c b/libempathy-gtk/empathy-account-chooser.c index 13040b0dc..14e6e2786 100644 --- a/libempathy-gtk/empathy-account-chooser.c +++ b/libempathy-gtk/empathy-account-chooser.c @@ -244,7 +244,9 @@ empathy_account_chooser_get_account (EmpathyAccountChooser *chooser) priv = GET_PRIV (chooser); model = gtk_combo_box_get_model (GTK_COMBO_BOX (chooser)); - gtk_combo_box_get_active_iter (GTK_COMBO_BOX (chooser), &iter); + if (!gtk_combo_box_get_active_iter (GTK_COMBO_BOX (chooser), &iter)) { + return NULL; + } gtk_tree_model_get (model, &iter, COL_ACCOUNT_POINTER, &account, -1); |