Merged in tbayen/idempiere (pull request #59)

IDEMPIERE-596 Report hangs if column for "next line" does not exist
This commit is contained in:
Carlos Ruiz 2013-02-06 10:13:27 -05:00
commit d84f3a77c6
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