empathy r1012 - trunk/src



Author: xclaesse
Date: Sun Apr 20 19:57:05 2008
New Revision: 1012
URL: http://svn.gnome.org/viewvc/empathy?rev=1012&view=rev

Log:
Do not crash on if ListChannels fails


Modified:
   trunk/src/empathy-filter.c

Modified: trunk/src/empathy-filter.c
==============================================================================
--- trunk/src/empathy-filter.c	(original)
+++ trunk/src/empathy-filter.c	Sun Apr 20 19:57:05 2008
@@ -785,6 +785,12 @@
 {
 	guint i;
 
+	if (error) {
+		empathy_debug (DEBUG_DOMAIN, "Error listing channels: %s",
+			       error->message);
+		return;
+	}
+
 	g_object_set_data (G_OBJECT (connection), "had-channels",
 			   GUINT_TO_POINTER (1));
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]