Skip to content

Commit

Permalink
[JENKINS-27363] - Properly handle null sentitive variables to satisfy…
Browse files Browse the repository at this point in the history
… the static analysis

Signed-off-by: Oleg Nenashev <o.v.nenashev@gmail.com>
  • Loading branch information
oleg-nenashev committed Mar 11, 2015
1 parent c415857 commit 9455ca6
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -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;
}
}));
}
Expand Down

0 comments on commit 9455ca6

Please sign in to comment.