mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-17 22:12:25 +00:00
NPE fix
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@18945 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
bcd8e37595
commit
fafa4bec66
1 file changed
+5
@@ -500,6 +500,11 @@ public abstract class Launcher {
|
||||
* @param workDir The work dir.
|
||||
*/
|
||||
protected final void maskedPrintCommandLine(List<String> cmd, boolean[] mask, FilePath workDir) {
|
||||
if(mask==null) {
|
||||
printCommandLine(cmd.toArray(new String[cmd.size()]),workDir);
|
||||
return;
|
||||
}
|
||||
|
||||
assert mask.length == cmd.size();
|
||||
final String[] masked = new String[cmd.size()];
|
||||
for (int i = 0; i < cmd.size(); i++) {
|
||||
|
||||
Reference in new issue
Block a user