From 36ba132a1e82b2b51436b217769da183cdcb07b0 Mon Sep 17 00:00:00 2001 From: dockes Date: Thu, 27 Nov 2008 14:05:16 +0000 Subject: [PATCH] safety check --- src/query/reslistpager.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/query/reslistpager.cpp b/src/query/reslistpager.cpp index 1b1668df..3a9c80ee 100644 --- a/src/query/reslistpager.cpp +++ b/src/query/reslistpager.cpp @@ -1,5 +1,5 @@ #ifndef lint -static char rcsid[] = "@(#$Id: reslistpager.cpp,v 1.2 2008-11-20 13:10:23 dockes Exp $ (C) 2007 J.F.Dockes"; +static char rcsid[] = "@(#$Id: reslistpager.cpp,v 1.3 2008-11-27 14:05:16 dockes Exp $ (C) 2007 J.F.Dockes"; #endif #include @@ -69,6 +69,8 @@ void ResListPager::resultPageNext() void ResListPager::displayPage() { + if (m_docSource.isNull()) + return; string chunk; // Display list header