diff --git a/src/common/connection_handlers.py b/src/common/connection_handlers.py
index af4894a9d78af50dfd2c5caf0e4f6a4b8c5373cf..4b93ffd019f588136327e52a982be691007215e4 100644
--- a/src/common/connection_handlers.py
+++ b/src/common/connection_handlers.py
@@ -2329,12 +2329,13 @@ class ConnectionHandlers(ConnectionVcard, ConnectionBytestream, ConnectionDisco,
 					r = destroy.getTagData('reason')
 					if r:
 						reason += ' (%s)' % r
-					try:
-						jid = helpers.parse_jid(destroy.getAttr('jid'))
-					except common.helpers.InvalidFormat:
-						pass
-					if jid:
-						reason += '\n' + _('You can join this room instead: %s') % jid
+					if destroy.getAttr('jid'):
+						try:
+							jid = helpers.parse_jid(destroy.getAttr('jid'))
+							reason += '\n' + _('You can join this room instead: %s') \
+								% jid
+						except common.helpers.InvalidFormat:
+							pass
 					statusCode = ['destroyed']
 				else:
 					reason = prs.getReason()