IDEMPIERE-596 Report hangs if column for "next line" does not exist

This commit is contained in:
Thomas Bayen 2013-01-29 00:15:48 +01:00
parent 62e2b95508
commit 6efdf383dc
1 changed files with 4 additions and 1 deletions

View File

@ -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