Infinite loop when empty table with detailStamp is rendered
-----------------------------------------------------------

                 Key: TOMAHAWK-1200
                 URL: https://issues.apache.org/jira/browse/TOMAHAWK-1200
             Project: MyFaces Tomahawk
          Issue Type: Bug
          Components: Extended Datatable
    Affects Versions: 1.1.6
         Environment: tested on Mac OS X
            Reporter: Stephen Cooper


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.




-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to