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

GiphySearchRandomByKeyword throws IndexOutOfBoundsException

XMLWordPrintable

      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)
      

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

              Created:
              Updated:
              Resolved: