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

[FIX JENKINS-13824] prevent NullPointerException

上级 7be3d2d2
......@@ -1400,8 +1400,12 @@ public abstract class Run <JobT extends Job<JobT,RunT>,RunT extends Run<JobT,Run
try {
try {
Charset charset = Computer.currentComputer().getDefaultCharset();
this.charset = charset.name();
Computer computer = Computer.currentComputer();
Charset charset = null;
if (computer != null) {
charset = computer.getDefaultCharset();
this.charset = charset.name();
}
// don't do buffering so that what's written to the listener
// gets reflected to the file immediately, which can then be
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册