Uploaded image for project: 'Tapestry 5'
  1. Tapestry 5
  2. TAP5-2587

Grid component zero division on rowsPerPage

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 5.4.1, 5.4.2, 5.4.3
    • Fix Version/s: None
    • Component/s: tapestry-core
    • Labels:

      Description

      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

      // Method setupDataSource, line 499
      if (availableRows == 0 || rowsPerPage == 0)
                  return;
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              malmyros Michail Almyros
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: