diff --git a/gajim/roster_window.py b/gajim/roster_window.py index ab2eb18e5..cb315f1d9 100644 --- a/gajim/roster_window.py +++ b/gajim/roster_window.py @@ -4843,8 +4843,9 @@ class RosterWindow: return image = model[titer][Column.AVATAR_IMG] - surface = image.get_property('surface') - renderer.set_property('surface', surface) + if image is not None: + surface = image.get_property('surface') + renderer.set_property('surface', surface) # allocate space for the icon only if needed if model[titer][Column.AVATAR_IMG] or \ app.config.get('avatar_position_in_roster') == 'left':