aboutsummaryrefslogtreecommitdiffstats
path: root/fop-core/src
diff options
context:
space:
mode:
authorSimon Steiner <ssteiner@apache.org>2021-09-02 13:30:11 +0000
committerSimon Steiner <ssteiner@apache.org>2021-09-02 13:30:11 +0000
commit549c33729e32393f8225124a956cf0028e9fea1e (patch)
treed162efa8013244cacd360ca6f7b3096db35ad445 /fop-core/src
parentfc24ca179b914ba84486f18c337e344b0abb43a1 (diff)
downloadxmlgraphics-fop-549c33729e32393f8225124a956cf0028e9fea1e.tar.gz
xmlgraphics-fop-549c33729e32393f8225124a956cf0028e9fea1e.zip
FOP-3026: Fix NPE with empty table header
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1892815 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'fop-core/src')
-rw-r--r--fop-core/src/main/java/org/apache/fop/layoutmgr/table/RowPainter.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/fop-core/src/main/java/org/apache/fop/layoutmgr/table/RowPainter.java b/fop-core/src/main/java/org/apache/fop/layoutmgr/table/RowPainter.java
index 06dda5efe..dbb1107ef 100644
--- a/fop-core/src/main/java/org/apache/fop/layoutmgr/table/RowPainter.java
+++ b/fop-core/src/main/java/org/apache/fop/layoutmgr/table/RowPainter.java
@@ -198,6 +198,9 @@ class RowPainter {
* in the outer mode
*/
private void addAreasAndFlushRow(boolean lastInPart, boolean lastOnPage) {
+ if (currentRow == null) {
+ return;
+ }
if (log.isDebugEnabled()) {
log.debug("Remembering yoffset for row " + currentRow.getIndex() + ": "
+ currentRowOffset);