Skip to content

Commit

Permalink
Merge pull request #40 from dshvedchenko/master
Browse files Browse the repository at this point in the history
[JENKINS-23447] related , avoid NPE if there are no getSensibleVariables()
  • Loading branch information
gboissinot committed Mar 9, 2015
2 parents db0d1ef + 07ae2b6 commit 65f2715
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -22,7 +22,7 @@ public Object getTarget() {
return new EnvInjectVarList(Maps.transformEntries(envMap,
new Maps.EntryTransformer<String, String, String>() {
public String transformEntry(String key, String value) {
return getSensibleVariables().contains(key) ? "********" : value;
return getSensibleVariables() != null && getSensibleVariables().contains(key) ? "********" : value;
}
}));
}
Expand Down

0 comments on commit 65f2715

Please sign in to comment.