Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-53523

GiphySearchRandomByKeyword throws IndexOutOfBoundsException

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      should choose random to data.size() and not to (data.size() + 1)

      Error when executing always post condition:
      java.lang.IndexOutOfBoundsException: Index: 25, Size: 25
      	at java.util.ArrayList.rangeCheck(ArrayList.java:657)
      	at java.util.ArrayList.get(ArrayList.java:433)
      	at aviadlevy.jenkins.plugin.giphy.search.impl.GiphySearchRandomByKeywordStepExecution.handleGiphySearchResponse(GiphySearchRandomByKeywordStepExecution.java:40)
      

        Attachments

          Activity

          Hide
          aviadlevy Aviad Levy added a comment -

          Fixed by PR#1

          Show
          aviadlevy Aviad Levy added a comment - Fixed by  PR#1

            People

            Assignee:
            aviadlevy Aviad Levy
            Reporter:
            aviadlevy Aviad Levy
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: