Skip to content

Commit

Permalink
Fix null pointer exception in getClangexcludedpaths
Browse files Browse the repository at this point in the history
Suggested by: Christopher Orr, Johannes Plunien

[FIXED JENKINS-28130]
  • Loading branch information
rodrigc committed Jun 13, 2015
1 parent b970f52 commit aaa7c9c
Showing 1 changed file with 3 additions and 2 deletions.
Expand Up @@ -3,6 +3,7 @@
import hudson.Extension;
import hudson.FilePath;
import hudson.Launcher;
import hudson.Util;
import hudson.model.Action;
import hudson.model.BuildListener;
import hudson.model.Result;
Expand Down Expand Up @@ -56,7 +57,7 @@ public ClangScanBuildPublisher(
super();
this.markBuildUnstableWhenThresholdIsExceeded = markBuildUnstableWhenThresholdIsExceeded;
this.bugThreshold = bugThreshold;
this.clangexcludedpaths = clangexcludedpaths;
this.clangexcludedpaths = Util.fixNull(clangexcludedpaths);
}

public int getBugThreshold() {
Expand All @@ -72,7 +73,7 @@ public void setBugThreshold(int bugThreshold) {
}

public void setClangexcludedpaths(String clangExcludePaths){
this.clangexcludedpaths = clangExcludePaths;
this.clangexcludedpaths = Util.fixNull(clangExcludePaths);
}

@Override
Expand Down

0 comments on commit aaa7c9c

Please sign in to comment.