diff --git a/gajim/roster_window.py b/gajim/roster_window.py index ab2eb18e55a8d7a46526395922b98b2c1d7a1d6b..cb315f1d97b2fbbac41eb0a88c6fdff37a3075eb 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':