Fix crash in NavWeb when accessing uninitiailzed variables.

svn: r13757
This commit is contained in:
Brian Matherly 2009-12-11 05:51:16 +00:00
parent 8b326b49d2
commit 04a1da3daf

View File

@ -1192,6 +1192,8 @@ class BasePage(object):
_obj = db.get_family_from_handle( newhandle )
partner1_handle = _obj.get_father_handle()
partner2_handle = _obj.get_mother_handle()
partner1 = None
partner2 = None
if partner1_handle:
partner1 = db.get_person_from_handle(partner1_handle)
if partner2_handle: