From 6efdf383dc5282f82155b4ac2e3d527a77cdca09 Mon Sep 17 00:00:00 2001 From: Thomas Bayen Date: Tue, 29 Jan 2013 00:15:48 +0100 Subject: [PATCH] IDEMPIERE-596 Report hangs if column for "next line" does not exist --- .../src/org/compiere/print/layout/TableElement.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/org.adempiere.base/src/org/compiere/print/layout/TableElement.java b/org.adempiere.base/src/org/compiere/print/layout/TableElement.java index 7a6067018b..060382895e 100644 --- a/org.adempiere.base/src/org/compiere/print/layout/TableElement.java +++ b/org.adempiere.base/src/org/compiere/print/layout/TableElement.java @@ -528,7 +528,10 @@ public class TableElement extends PrintElement if (col != dataCol) { m_columnWidths.add(new Float(0.0)); // for the data column - Float origWidth = (Float)m_columnWidths.get(col); + Float origWidth=null; + try{ + origWidth = (Float)m_columnWidths.get(col); + }catch(IndexOutOfBoundsException e){} if (origWidth == null) log.log(Level.SEVERE, "Column " + dataCol + " below " + col + " - no value for orig width"); else