Changeset 10492

Show
Ignore:
Timestamp:
10/07/08 10:20:46 (7 weeks ago)
Author:
asterix
Message:

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

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/message_window.py

    r10490 r10492  
    10361036May be useful some day in the future?''' 
    10371037                ctrl = self.get_control(jid, acct) 
    1038                 if ctrl.type_id == message_control.TYPE_GC: 
     1038                if ctrl and ctrl.type_id == message_control.TYPE_GC: 
    10391039                        return ctrl 
    10401040                return None