diff --git a/gajim/disco.py b/gajim/disco.py
index bf3f09d99..9046ccf94 100644
--- a/gajim/disco.py
+++ b/gajim/disco.py
@@ -1569,11 +1569,14 @@ class ToplevelAgentBrowser(AgentBrowser):
def _update_info(self, iter_, jid, node, identities, features, data):
addr = get_agent_address(jid, node)
- name = identities[0].get('name', '')
- if name:
- descr = "%s\n%s" % (name, addr)
- else:
+ if not identities:
descr = "%s" % addr
+ else:
+ name = identities[0].get('name', '')
+ if name:
+ descr = "%s\n%s" % (name, addr)
+ else:
+ descr = "%s" % addr
# Update progress
self._progress += 1