提交 575c1af4 编写于 作者: I Ing. Pavel Janousek

[JENKINS-33942] Fixed NPE when non-exists run requested

上级 4515625a
......@@ -28,6 +28,9 @@ public class SetBuildDescriptionCommand extends CLICommand implements Serializab
protected int run() throws Exception {
Run run = job.getBuildByNumber(number);
if (run == null)
throw new IllegalArgumentException("No such build #"+number);
run.checkPermission(Run.UPDATE);
if ("=".equals(description)) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册