ArithmeticException when last button is pressed in empty table
--------------------------------------------------------------

                 Key: TOMAHAWK-1400
                 URL: https://issues.apache.org/jira/browse/TOMAHAWK-1400
             Project: MyFaces Tomahawk
          Issue Type: Bug
    Affects Versions: 1.1.8
         Environment: JBoss 5.01GA with Sun's JSF RI, Ubuntu Linux
            Reporter: Jochen Reinhardt
            Priority: Minor


Problem is in AbstractHtmlDataScroller.java, line 307 / 308

int rows = uiData.getRows();
int delta = rowcount % rows;

Rows obviously can be 0, so the code should read:

int rows = uiData.getRows();
int delta = rows != 0 ? rowcount % rows : 0;

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to