Daniel Brötzmann pushed to branch master at gajim / gajim


Commits:
f2245248 by wurstsalat at 2023-10-30T19:48:17+01:00
fix: GroupchatRoster: Check for contact before trying to load roster

Fixes #11666

- - - - -


1 changed file:

- gajim/gtk/groupchat_roster.py


Changes:

=====================================
gajim/gtk/groupchat_roster.py
=====================================
@@ -526,8 +526,10 @@ def _load_roster(self) -> None:
         if not self.get_reveal_child():
             return
 
+        if self._contact is None:
+            return
+
         log.info('Load Roster')
-        assert self._contact is not None
         self._contact.multi_connect({
             'user-affiliation-changed': self._update_contact,
             'user-avatar-update': self._on_user_avatar_update,



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/f2245248b6ce316d6bffec3f685683799db68a85

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/f2245248b6ce316d6bffec3f685683799db68a85
You're receiving this email because of your account on dev.gajim.org.


_______________________________________________
Commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to