From f692c7038e94024ad3c5ce96db50ea7e7d2e9ef6 Mon Sep 17 00:00:00 2001 From: Jeremias Maerki Date: Tue, 11 Feb 2003 14:04:35 +0000 Subject: [PATCH] Fixes a cause for a NPE. Doesn't fix the obvious bug, though. Bug can be reproduced with the FO file in: http://marc.theaimsgroup.com/?l=fop-user&m=104497021323551&w=2 git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/fop-0_20_2-maintain@195937 13f79535-47bb-0310-9956-ffa450edef68 --- src/org/apache/fop/render/AbstractRenderer.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/org/apache/fop/render/AbstractRenderer.java b/src/org/apache/fop/render/AbstractRenderer.java index 0ac5f75a3..ea0ef32b6 100644 --- a/src/org/apache/fop/render/AbstractRenderer.java +++ b/src/org/apache/fop/render/AbstractRenderer.java @@ -451,9 +451,12 @@ public abstract class AbstractRenderer implements Renderer { * @param area area to render */ public void renderLineArea(LineArea area) { - if (area.pendingWidth>0) { + if (area.pendingWidth > 0) { + final String pageNumber = (area.getPage() != null + ? area.getPage().getFormattedNumber() + : ""); log.error("Areas pending, text probably lost. Check Page " + - area.getPage().getFormattedNumber() + + pageNumber + " and following page."); } int rx = this.currentAreaContainerXPosition + area.getStartIndent(); -- 2.39.5