Skip to content
Permalink
Browse files
Merge pull request #40 from dshvedchenko/master
[JENKINS-23447] related , avoid NPE if there are no getSensibleVariables()
  • Loading branch information
gboissinot committed Mar 9, 2015
2 parents db0d1ef + 07ae2b6 commit 65f2715af6445d217e5df8a24bbd179f7841403f
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/main/java/org/jenkinsci/plugins/envinject/EnvInjectPluginAction.java
@@ -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;
}
}));
}

0 comments on commit 65f2715

Please sign in to comment.