jenkinsci/ghprb-plugin — pull request #1 by accek (2012-09-09 12:55:50+00:00)
Title: fix NoSuchElementException when no comments

Fixes the following error when looking on a new pull requests with
no comments yet:

Sep 9, 2012 2:27:10 PM hudson.triggers.Trigger checkTriggers
WARNING: org.jenkinsci.plugins.ghprb.GhprbTrigger.run() failed for xxx
java.util.NoSuchElementException
at org.kohsuke.github.Requester$1.next(Requester.java:212)
at org.kohsuke.github.PagedIterator.fetch(PagedIterator.java:42)
at org.kohsuke.github.PagedIterator.nextPage(PagedIterator.java:57)
at org.kohsuke.github.PagedIterable.asList(PagedIterable.java:20)
at org.kohsuke.github.GHIssue.getComments(GHIssue.java:184)
at org.jenkinsci.plugins.ghprb.GhprbPullRequest.check(GhprbPullRequest.java:46)
at org.jenkinsci.plugins.ghprb.GhprbRepo.check(GhprbRepo.java:60)
at org.jenkinsci.plugins.ghprb.GhprbTrigger.run(GhprbTrigger.java:92)
at hudson.triggers.Trigger.checkTriggers(Trigger.java:259)
at hudson.triggers.Trigger$Cron.doRun(Trigger.java:207)
at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:54)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)