IsAncestorOf bug hidden by looking up null handle
This commit is contained in:
parent
e54ed1254a
commit
429b91d357
@ -73,14 +73,14 @@ class IsAncestorOf(Rule):
|
|||||||
return
|
return
|
||||||
if not first:
|
if not first:
|
||||||
self.map.add(person.handle)
|
self.map.add(person.handle)
|
||||||
|
|
||||||
fam_id = person.get_main_parents_family_handle()
|
fam_id = person.get_main_parents_family_handle()
|
||||||
fam = db.get_family_from_handle(fam_id)
|
if fam_id:
|
||||||
if fam:
|
fam = db.get_family_from_handle(fam_id)
|
||||||
f_id = fam.get_father_handle()
|
if fam:
|
||||||
m_id = fam.get_mother_handle()
|
f_id = fam.get_father_handle()
|
||||||
|
m_id = fam.get_mother_handle()
|
||||||
|
|
||||||
if f_id:
|
if f_id:
|
||||||
self.init_ancestor_list(db,db.get_person_from_handle(f_id),0)
|
self.init_ancestor_list(db,db.get_person_from_handle(f_id),0)
|
||||||
if m_id:
|
if m_id:
|
||||||
self.init_ancestor_list(db,db.get_person_from_handle(m_id),0)
|
self.init_ancestor_list(db,db.get_person_from_handle(m_id),0)
|
||||||
|
Loading…
Reference in New Issue
Block a user