Philipp Hörist pushed to branch master at gajim / gajim
Commits:
-
1ea4ff26
by Philipp Hörist at 2018-03-06T23:12:33+01:00
1 changed file:
Changes:
| ... | ... | @@ -413,6 +413,10 @@ class RosterTooltip(Gtk.Window, StatusTable): |
| 413 | 413 |
# Username/Account/Groupchat
|
| 414 | 414 |
self.prim_contact = app.contacts.get_highest_prio_contact_from_contacts(
|
| 415 | 415 |
contacts)
|
| 416 |
+ if self.prim_contact is None:
|
|
| 417 |
+ log.error('No contact for Roster tooltip found')
|
|
| 418 |
+ log.error('contacts: %s, typ: %s, account: %s', contacts, typ, account)
|
|
| 419 |
+ return
|
|
| 416 | 420 |
self.contact_jid = self.prim_contact.jid
|
| 417 | 421 |
name = GLib.markup_escape_text(self.prim_contact.get_shown_name())
|
| 418 | 422 |
name_markup = '<b>{}</b>'.format(name)
|