chat_control.py: update_banner_state_image: AttributeError : 'NoneType' object has no attribute 'scale_simple'
When attempting to open a chat message from a contact which is 'Not in Roster' which has avatar loaded et al, get the following error message and window does not open.
Traceback (most recent call last):
File "C:\Devel\jabber\gajim\src\roster_window.py", line 2057,
in on_roster_treeview_row_activated
self.new_chat(c, account)
File "C:\Devel\jabber\gajim\src\roster_window.py", line 1692,
in new_chat
chat_control = ChatControl(mw, contact, account)
File "C:\Devel\jabber\gajim\src\chat_control.py", line 705,
in __init__
self.update_ui()
File "C:\Devel\jabber\gajim\src\chat_control.py", line 756,
in update_ui
ChatControlBase.update_ui(self)
File "C:\Devel\jabber\gajim\src\chat_control.py", line 59,
in update_ui
self.draw_banner()
File "C:\Devel\jabber\gajim\src\chat_control.py", line 799,
in draw_banner
ChatControlBase.draw_banner(self)
File "C:\Devel\jabber\gajim\src\chat_control.py", line 56,
in draw_banner
self._update_banner_state_image()
File "C:\Devel\jabber\gajim\src\chat_control.py", line 787,
in _update_banner_state_image
scaled_pix = pix.scale_simple(32, 32,
AttributeError: 'NoneType' object has no attribute 'scale_simple'
The (soon-to-be) attached patch fixes the symptom, although I don't know if the cause has other pernicious side-effects. Possibly worth further investigation.