Skip to content
Permalink
Browse files
[FIX JENKINS-13824] prevent NullPointerException
  • Loading branch information
ndeloof committed May 18, 2012
1 parent 7be3d2d commit 609392414f1060fb67d69db026b6f40478784345
Showing with 6 additions and 2 deletions.
  1. +6 −2 core/src/main/java/hudson/model/Run.java
@@ -1400,8 +1400,12 @@ protected final void run(Runner job) {

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

0 comments on commit 6093924

Please sign in to comment.