From f30d524f4d479fd1e08bf7adff4d5de3a2effc4f Mon Sep 17 00:00:00 2001 From: Gary Burton Date: Sun, 6 Apr 2008 20:51:16 +0000 Subject: [PATCH] Bug #1984 No output from export view svn: r10512 --- src/DataViews/PersonView.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/DataViews/PersonView.py b/src/DataViews/PersonView.py index 60afebb86..f7c3a1942 100644 --- a/src/DataViews/PersonView.py +++ b/src/DataViews/PersonView.py @@ -982,7 +982,9 @@ class PersonView(PageView.PersonNavView): path = (0, ) node = self.model.on_get_iter(path) - while node: + + # Node might be null if the surname is not known so test against None + while node != None: real_iter = self.model.get_iter(path) for subindex in range(0, self.model.iter_n_children(real_iter)): subpath = ((path[0], subindex))