Fix a traceback in the bookmarks tab when we do not set a nickname

explicitly.
This commit is contained in:
Eijebong 2015-07-06 17:06:45 +02:00
parent be9f447099
commit c62c5b2da7

View file

@ -14,7 +14,7 @@ class BookmarkJIDInput(FieldInput, Input):
FieldInput.__init__(self, field)
Input.__init__(self)
jid = safeJID(field.jid)
jid.resource = field.nick
jid.resource = field.nick or None
self.text = jid.full
self.pos = len(self.text)
self.color = get_theme().COLOR_NORMAL_TEXT