From ba2d5d503dd2d81e2a84e65daa9f1591b99c2d54 Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Sun, 30 May 2010 04:03:05 +0000 Subject: [PATCH] Protection from null family svn: r15501 --- src/gen/proxy/private.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gen/proxy/private.py b/src/gen/proxy/private.py index 485824670..8e05788d8 100644 --- a/src/gen/proxy/private.py +++ b/src/gen/proxy/private.py @@ -767,7 +767,9 @@ def sanitize_person(db, person): # copy Family reference list for handle in person.get_parent_family_handle_list(): family = db.get_family_from_handle(handle) - if family and family.get_privacy(): + if not family: + continue + elif family.get_privacy(): continue child_ref_list = family.get_child_ref_list() for child_ref in child_ref_list: