[
https://issues.apache.org/jira/browse/TAP5-2587?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Volker Lamp reassigned TAP5-2587:
---------------------------------
Assignee: Volker Lamp
> Grid component zero division on rowsPerPage
> -------------------------------------------
>
> Key: TAP5-2587
> URL: https://issues.apache.org/jira/browse/TAP5-2587
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.4.1, 5.4.2, 5.4.3
> Reporter: Michail Almyros
> Assignee: Volker Lamp
> Priority: Major
> Labels: easyfix
>
> When the component will try to setup the data source there is a chance that
> the rowsPerPage parameter hasn't been initialised yet and this can lead to
> division by zero.
> Simply adding an additional check for the rowsPerPage parameter will fix the
> issue.
> Change to
> {code:java}
> // Method setupDataSource, line 499
> if (availableRows == 0 || rowsPerPage == 0)
> return;
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)