Skip to content
Permalink
Browse files

Merge pull request #42 from jenkinsci/JENKINS-27363

[JENKINS-27363] - Properly handle null sentitive variables
  • Loading branch information
oleg-nenashev committed Apr 9, 2015
2 parents b78c45c + 9455ca6 commit 0efba11ff363f81569e497437867c298abea8579
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/main/java/org/jenkinsci/plugins/envinject/EnvInjectPluginAction.java
@@ -22,7 +22,8 @@ public Object getTarget() {
return new EnvInjectVarList(Maps.transformEntries(envMap,
new Maps.EntryTransformer<String, String, String>() {
public String transformEntry(String key, String value) {
return getSensibleVariables() != null && getSensibleVariables().contains(key) ? "********" : value;
final Set<String> sensibleVars = getSensibleVariables();
return sensibleVars != null && sensibleVars.contains(key) ? "********" : value;
}
}));
}

0 comments on commit 0efba11

Please sign in to comment.
You can’t perform that action at this time.