Uploaded image for project: 'MyFaces Tomahawk'
  1. MyFaces Tomahawk
  2. TOMAHAWK-1400

ArithmeticException when last button is pressed in empty table

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.1.8
    • None
    • Data Scroller
    • None
    • JBoss 5.01GA with Sun's JSF RI, Ubuntu Linux

    Description

      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;

      Attachments

        Activity

          People

            hazems Hazem Saleh
            jochen.reinhardt Jochen Reinhardt
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 5m
                5m
                Remaining:
                Remaining Estimate - 5m
                5m
                Logged:
                Time Spent - Not Specified
                Not Specified