Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-808

renderIterator of ListView and Loop should use the number of children rather than the current size of the model

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.3.0-beta2
    • 1.3.0-beta3
    • None
    • None

    Description

      Currently, when you provide null elements in the model (renderIterator), you'll get a NPE exception further down the line (in ListView#renderItem for instance). We should either throw an meaningful exception earlier, or we should make repeaters more lenient and just print out a warning message. I opt for the latter. This should be clear enough when developing (you probably would wonder where your data is to start with) and a lot better than unexpectedly getting NPEs in a production systems in case you missed it.

      Attachments

        Activity

          People

            ehillenius Eelco Hillenius
            ehillenius Eelco Hillenius
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: