5290: Unhandled exception when merging people
svn: r18655
This commit is contained in:
parent
90ebd5f2cb
commit
b328f473cb
@ -481,6 +481,11 @@ class DisplayState(gen.utils.Callback):
|
|||||||
return self.disprel_old
|
return self.disprel_old
|
||||||
|
|
||||||
active = dbstate.db.get_person_from_handle(active_handle)
|
active = dbstate.db.get_person_from_handle(active_handle)
|
||||||
|
if active is None:
|
||||||
|
# During merger this method can be called at a time when treemodel
|
||||||
|
# and database are not in sync, resulting in active_handle != None,
|
||||||
|
# but active == None; see bug 5290 for the details.
|
||||||
|
return u''
|
||||||
name = self.relationship.get_one_relationship(
|
name = self.relationship.get_one_relationship(
|
||||||
dbstate.db, default_person, active)
|
dbstate.db, default_person, active)
|
||||||
#store present call data
|
#store present call data
|
||||||
|
Loading…
Reference in New Issue
Block a user