]> git.0d.be Git - empathy.git/blobdiff - libempathy-gtk/empathy-contact-dialogs.c
Merge branch 'sjoerd-mc5' into mc5
[empathy.git] / libempathy-gtk / empathy-contact-dialogs.c
index fc1cbbc8ea1c83350a7cb67b3f3b7de7cca00a52..725011c0b338cda8a881306f4fc005bd8483068c 100644 (file)
@@ -337,6 +337,10 @@ can_add_contact_to_account (EmpathyAccount *account,
        if (connection == NULL)
                return FALSE;
 
+       if (connection == NULL) {
+               return FALSE;
+       }
+
        contact_manager = empathy_contact_manager_dup_singleton ();
        result = empathy_contact_manager_get_flags_for_connection (contact_manager, connection) & EMPATHY_CONTACT_LIST_CAN_ADD;
        g_object_unref (contact_manager);