]> git.0d.be Git - empathy.git/blobdiff - libempathy/empathy-tp-chat.c
TpChat: don't crash with broken TpProperties implementations
[empathy.git] / libempathy / empathy-tp-chat.c
index 27003561e7f28dd151cdd5808e03aa7cf152a613..9eaff95924fa34b6397fde09298119958fe3a805 100644 (file)
@@ -686,13 +686,13 @@ tp_chat_list_properties_cb (TpProxy         *proxy,
        GArray            *ids;
        guint              i;
 
-       self->priv->had_properties_list = TRUE;
-
        if (error) {
                DEBUG ("Error listing properties: %s", error->message);
                return;
        }
 
+       self->priv->had_properties_list = TRUE;
+
        ids = g_array_sized_new (FALSE, FALSE, sizeof (guint), properties->len);
        self->priv->properties = g_ptr_array_sized_new (properties->len);
        for (i = 0; i < properties->len; i++) {