You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Jochen Reinhardt (JIRA)" <de...@myfaces.apache.org> on 2009/03/10 18:56:51 UTC

[jira] Updated: (TOMAHAWK-1400) ArithmeticException when last button is pressed in empty table

     [ https://issues.apache.org/jira/browse/TOMAHAWK-1400?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jochen Reinhardt updated TOMAHAWK-1400:
---------------------------------------

    Status: Patch Available  (was: Open)

> 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
>          Components: Data Scroller
>    Affects Versions: 1.1.8
>         Environment: JBoss 5.01GA with Sun's JSF RI, Ubuntu Linux
>            Reporter: Jochen Reinhardt
>            Priority: Minor
>   Original Estimate: 0.08h
>  Remaining Estimate: 0.08h
>
> 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.