diff options
author | Jeremias Maerki <jeremias@apache.org> | 2006-05-03 08:30:56 +0000 |
---|---|---|
committer | Jeremias Maerki <jeremias@apache.org> | 2006-05-03 08:30:56 +0000 |
commit | a806e6360ab5f703dfd15e8565e3b456f800cd8b (patch) | |
tree | c31261c13b362683f43feed9c23aaba858a0cadf /src/java/org/apache | |
parent | 6e9e6775bd5c5d16550ba64b7666eda6ed382d44 (diff) | |
download | xmlgraphics-fop-a806e6360ab5f703dfd15e8565e3b456f800cd8b.tar.gz xmlgraphics-fop-a806e6360ab5f703dfd15e8565e3b456f800cd8b.zip |
Bugzilla #38243:
Bugfix for NPE when there are gaps in the table-column setup.
Submitted by: Gerhard Oettl <gerhard.oettl.at.oesoft.at>
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@399200 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache')
-rw-r--r-- | src/java/org/apache/fop/layoutmgr/table/ColumnSetup.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/java/org/apache/fop/layoutmgr/table/ColumnSetup.java b/src/java/org/apache/fop/layoutmgr/table/ColumnSetup.java index 00784fc5c..7b5db7df0 100644 --- a/src/java/org/apache/fop/layoutmgr/table/ColumnSetup.java +++ b/src/java/org/apache/fop/layoutmgr/table/ColumnSetup.java @@ -1,5 +1,5 @@ /* - * Copyright 2005 The Apache Software Foundation. + * Copyright 2005-2006 The Apache Software Foundation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -61,9 +61,10 @@ public class ColumnSetup { ListIterator iter = rawCols.listIterator(); while (iter.hasNext()) { TableColumn col = (TableColumn)iter.next(); - if (col != null) { - colnum = col.getColumnNumber(); + if (col == null) { + continue; } + colnum = col.getColumnNumber(); for (int i = 0; i < col.getNumberColumnsRepeated(); i++) { while (colnum > columns.size()) { columns.add(null); |