diff --git a/src/common/connection_handlers.py b/src/common/connection_handlers.py
index a1cde3402e426553e51f93ce4aac8119e529f588..c25dec8fad715276c94b330107ca8272e52bd6b8 100644
--- a/src/common/connection_handlers.py
+++ b/src/common/connection_handlers.py
@@ -1651,6 +1651,9 @@ class ConnectionHandlers(ConnectionVcard, ConnectionBytestream, ConnectionDisco,
 		log.debug('TimeRevisedResultCB')
 		time_info = ''
 		qp = iq_obj.getTag('time')
+		if not qp:
+			# wrong answer
+			return
 		tzo = qp.getTag('tzo').getData()
 		if tzo == 'Z':
 			tzo = '0:0'