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

Infinite loop when empty table with detailStamp is rendered

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.1.6
    • 1.1.7
    • Extended Datatable
    • None
    • tested on Mac OS X

    Description

      I've found that the detailStamp facit will go into an infinite loop, setting row indexes higher and higher - way past the table size - until an OutOfMemory exception occurs (oddly enough, it occurs before the stack overflows).

      I've isolated the code involved, and will attach a patch. All I had to do was swap the order of two checks, so that we'd check if we've gotten to the end of the table before we check if the detailStamp for the current row is expanded.

      Attachments

        1. HtmlDataTable.java.patch
          1 kB
          Stephen Cooper

        Activity

          People

            grantsmith Grant Smith
            scooper4711 Stephen Cooper
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: