Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-3942

NullPointerException in IteratorComponent

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.3.7
    • 2.3.8
    • None
    • None

    Description

      We get a NullPointerException from line 383 of IteratorComponent.java. The line is currently

      return value != null ? values.get(nextIndex) : nextIndex;

      and I believe it should be

      return values != null ? values.get(nextIndex) : nextIndex;

      values not value.

      Exception below.

      Exception created : java.lang.NullPointerException
              at org.apache.struts2.components.IteratorComponent$CounterIterator.next(IteratorComponent.java:383)
              at org.apache.struts2.components.IteratorComponent.start(IteratorComponent.java:302)
              at org.apache.struts2.views.jsp.ComponentTagSupport.doStartTag(ComponentTagSupport.java:53)
      

      Attachments

        Activity

          People

            lukaszlenart Lukasz Lenart
            cgalpin Charles Galpin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: