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

hudson.model.Run.getLog throws IndexOutOfBoundsException when called with 0

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • core

      I get a stacktrace when configuring a plugin to include no log entries when posting
      job notification:
      java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
      at java.util.LinkedList.entry(LinkedList.java:382)
      at java.util.LinkedList.set(LinkedList.java:345)
      at hudson.model.Run.getLog(Run.java:1963)
      at com.tikal.hudson.plugins.notification.Phase.getLog(Phase.java:141)
      at com.tikal.hudson.plugins.notification.Phase.buildJobState(Phase.java:79)
      at com.tikal.hudson.plugins.notification.Phase.handle(Phase.java:42)
      at com.tikal.hudson.plugins.notification.JobListener.onStarted(JobListener.java:31)
      at hudson.model.listeners.RunListener.fireStarted(RunListener.java:213)
      at hudson.model.Run.execute(Run.java:1747)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      at hudson.model.ResourceController.execute(ResourceController.java:89)
      at hudson.model.Executor.run(Executor.java:240)

          [JENKINS-27441] hudson.model.Run.getLog throws IndexOutOfBoundsException when called with 0

          Valentin Batz created issue -
          Valentin Batz made changes -
          Description Original: I get a stacktrace when configuring a pluging to include no log entries when posting
          job notification:
          java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
          at java.util.LinkedList.entry(LinkedList.java:382)
          at java.util.LinkedList.set(LinkedList.java:345)
          at hudson.model.Run.getLog(Run.java:1963)
          at com.tikal.hudson.plugins.notification.Phase.getLog(Phase.java:141)
          at com.tikal.hudson.plugins.notification.Phase.buildJobState(Phase.java:79)
          at com.tikal.hudson.plugins.notification.Phase.handle(Phase.java:42)
          at com.tikal.hudson.plugins.notification.JobListener.onStarted(JobListener.java:31)
          at hudson.model.listeners.RunListener.fireStarted(RunListener.java:213)
          at hudson.model.Run.execute(Run.java:1747)
          at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
          at hudson.model.ResourceController.execute(ResourceController.java:89)
          at hudson.model.Executor.run(Executor.java:240)
          New: I get a stacktrace when configuring a plugin to include no log entries when posting
          job notification:
          java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
          at java.util.LinkedList.entry(LinkedList.java:382)
          at java.util.LinkedList.set(LinkedList.java:345)
          at hudson.model.Run.getLog(Run.java:1963)
          at com.tikal.hudson.plugins.notification.Phase.getLog(Phase.java:141)
          at com.tikal.hudson.plugins.notification.Phase.buildJobState(Phase.java:79)
          at com.tikal.hudson.plugins.notification.Phase.handle(Phase.java:42)
          at com.tikal.hudson.plugins.notification.JobListener.onStarted(JobListener.java:31)
          at hudson.model.listeners.RunListener.fireStarted(RunListener.java:213)
          at hudson.model.Run.execute(Run.java:1747)
          at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
          at hudson.model.ResourceController.execute(ResourceController.java:89)
          at hudson.model.Executor.run(Executor.java:240)
          Daniel Beck made changes -
          Assignee New: Daniel Beck [ danielbeck ]
          Daniel Beck made changes -
          Assignee Original: Daniel Beck [ danielbeck ] New: Valentin Batz [ valeni ]
          Valentin Batz made changes -
          Remote Link New: This issue links to "github pull request (Web Link)" [ 12162 ]
          Valentin Batz made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          John Vines made changes -
          Link New: This issue is related to JENKINS-27323 [ JENKINS-27323 ]
          SCM/JIRA link daemon made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: In Progress [ 3 ] New: Resolved [ 5 ]
          Oleg Nenashev made changes -
          Labels New: lts-candidate
          Oliver Gondža made changes -
          Labels Original: lts-candidate New: 1.609.1-rejected lts-candidate
          Oliver Gondža made changes -
          Labels Original: 1.609.1-rejected lts-candidate New: lts-candidate

            valeni Valentin Batz
            valeni Valentin Batz
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: