You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by "Michail Almyros (JIRA)" <ji...@apache.org> on 2017/07/14 12:58:00 UTC
[jira] [Created] (TAP5-2587) Grid component zero division on
rowsPerPage
Michail Almyros created TAP5-2587:
-------------------------------------
Summary: 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.3, 5.4.2, 5.4.1
Reporter: Michail Almyros
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
(v6.4.14#64029)