jenkinsci/jenkins — pull request #955 by scoheb (2013-09-25 19:27:17+00:00)
Title: Protect against case where a build could not be scheduled

It is possible that job.scheduleBuild2 can return null if the Queue already has an item for this Task. This protects against a possible NPE.