IDEMPIERE-5264 - fix default report showing blank results (#1288)
This commit is contained in:
parent
6fde4b816d
commit
b4922eaf12
|
@ -1259,6 +1259,8 @@ public class TableElement extends PrintElement
|
||||||
if (pageYindex >= m_firstRowOnPage.size()) {
|
if (pageYindex >= m_firstRowOnPage.size()) {
|
||||||
pageYindex = m_firstRowOnPage.size() - 1;
|
pageYindex = m_firstRowOnPage.size() - 1;
|
||||||
}
|
}
|
||||||
|
if (pageYindex<0)
|
||||||
|
return;
|
||||||
int firstRow = ((Integer)m_firstRowOnPage.get(pageYindex)).intValue();
|
int firstRow = ((Integer)m_firstRowOnPage.get(pageYindex)).intValue();
|
||||||
int nextPageRow = m_data.getRowCount(); // no of rows
|
int nextPageRow = m_data.getRowCount(); // no of rows
|
||||||
if (pageYindex+1 < m_firstRowOnPage.size())
|
if (pageYindex+1 < m_firstRowOnPage.size())
|
||||||
|
|
Loading…
Reference in New Issue