fix traceback when we get bookmarks and roster is not present.

This commit is contained in:
Yann Leboulanger 2009-07-12 15:13:17 +02:00
parent 15b3ba35b1
commit 7a976135e2
1 changed files with 13 additions and 12 deletions

View File

@ -569,6 +569,7 @@ class RosterWindow:
big_brother_jid) big_brother_jid)
child_iters = self._get_contact_iter(big_brother_jid, big_brother_account, child_iters = self._get_contact_iter(big_brother_jid, big_brother_account,
model=self.model) model=self.model)
if child_iters:
parent_iter = self.model.iter_parent(child_iters[0]) parent_iter = self.model.iter_parent(child_iters[0])
parent_type = self.model[parent_iter][C_TYPE] parent_type = self.model[parent_iter][C_TYPE]