提交 3efe07f5 编写于 作者: N Nicolas De Loof

[JENKINS-18824] prevent failure when startedBy is ‘unknown’

上级 6b4331b1
......@@ -236,7 +236,8 @@ public class BuildCommand extends CLICommand {
@Override
public String getShortDescription() {
String userName = User.get(startedBy).getDisplayName();
User user = User.get(startedBy, false);
String userName = user != null ? user.getDisplayName() : startedBy;
return Messages.BuildCommand_CLICause_ShortDescription(userName);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册