IDEMPIERE-5264 - fix default report showing blank results (#1288)

This commit is contained in:
Ricardo Santana 2022-04-12 04:41:07 -03:00 committed by GitHub
parent 6fde4b816d
commit b4922eaf12
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -1259,6 +1259,8 @@ public class TableElement extends PrintElement
if (pageYindex >= m_firstRowOnPage.size()) {
pageYindex = m_firstRowOnPage.size() - 1;
}
if (pageYindex<0)
return;
int firstRow = ((Integer)m_firstRowOnPage.get(pageYindex)).intValue();
int nextPageRow = m_data.getRowCount(); // no of rows
if (pageYindex+1 < m_firstRowOnPage.size())