src/reportlab/platypus/doctemplate.py
changeset 4346 081acecbf8f6
parent 4335 27d44089acb3
child 4347 761e190b40af
--- a/src/reportlab/platypus/doctemplate.py	Fri Mar 24 16:33:56 2017 +0000
+++ b/src/reportlab/platypus/doctemplate.py	Fri Mar 24 16:38:01 2017 +0000
@@ -806,9 +806,11 @@
         #the object(s) about to be processed
         self.filterFlowables(flowables)
 
-        self.handle_breakBefore(flowables)
-        self.handle_keepWithNext(flowables)
         f = flowables[0]
+        if f:
+            self.handle_breakBefore(flowables)
+            self.handle_keepWithNext(flowables)
+            f = flowables[0]
         del flowables[0]
         if f is None:
             return