Skip to content
Snippets Groups Projects
Commit c9b7dc68 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

[misc] check existance of control before checking control type. fixes #4385

parent 5795a271
No related branches found
No related tags found
No related merge requests found
......@@ -1035,7 +1035,7 @@ class MessageWindowMgr(gobject.GObject):
'''Same as get_control. Was briefly required, is not any more.
May be useful some day in the future?'''
ctrl = self.get_control(jid, acct)
if ctrl.type_id == message_control.TYPE_GC:
if ctrl and ctrl.type_id == message_control.TYPE_GC:
return ctrl
return None
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment