fix possible TB (can be None)

This commit is contained in:
Jean-Marie Traissard 2008-04-16 21:39:58 +00:00
parent fdf46e5430
commit fbc1ae9b5c
1 changed files with 1 additions and 1 deletions

View File

@ -1093,7 +1093,7 @@ class GroupchatControl(ChatControlBase):
# We do that here because we may request it to the real JID if we
# knows it. connections.py doesn't know it.
con = gajim.connections[self.account]
if gc_c.jid:
if gc_c and gc_c.jid:
real_jid = gc_c.jid
if gc_c.resource:
real_jid += '/' + gc_c.resource