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

GiphySearchRandomByKeyword throws IndexOutOfBoundsException

    XMLWordPrintable

Details

    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

          aviadlevy Aviad Levy created issue -
          aviadlevy Aviad Levy made changes -
          Field Original Value New Value
          Status Open [ 1 ] In Progress [ 3 ]
          aviadlevy Aviad Levy made changes -
          Status In Progress [ 3 ] In Review [ 10005 ]
          aviadlevy Aviad Levy added a comment -

          Fixed by PR#1

          aviadlevy Aviad Levy added a comment - Fixed by  PR#1
          aviadlevy Aviad Levy made changes -
          Resolution Fixed [ 1 ]
          Status In Review [ 10005 ] Resolved [ 5 ]
          aviadlevy Aviad Levy made changes -
          Status Resolved [ 5 ] In Review [ 10005 ]
          aviadlevy Aviad Levy made changes -
          Status In Review [ 10005 ] Resolved [ 5 ]
          aviadlevy Aviad Levy made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

          People

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

            Dates

              Created:
              Updated:
              Resolved: