diff --git a/src/common/connection_handlers.py b/src/common/connection_handlers.py
index 3aa14f7f07ffecb10b7e7e63198995652c11785a..4551e9764d4b30e8bdc70834336356ab0188139b 100644
--- a/src/common/connection_handlers.py
+++ b/src/common/connection_handlers.py
@@ -1861,8 +1861,8 @@ class ConnectionHandlers(ConnectionVcard, ConnectionBytestream, ConnectionDisco,
 			exchange_items_list[jid] = []
 			exchange_items_list[jid].append(name)
 			exchange_items_list[jid].append(groups)
-		self.dispatch('ROSTERX', (action, exchange_items_list, jid_from))
-
+		if exchange_items_list:
+			self.dispatch('ROSTERX', (action, exchange_items_list, jid_from))
 
 	def _messageCB(self, con, msg):
 		'''Called when we receive a message'''