Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
resolves issue JENKINS-30926.
  • Loading branch information
lordofthejars committed Oct 13, 2015
1 parent a7657a8 commit 73e81a7
Showing 1 changed file with 6 additions and 0 deletions.
Expand Up @@ -67,6 +67,12 @@ public final class FileCredentialsImpl extends BaseStandardCredentials implement
this.fileName = fileName;
this.data = Base64.decodeBase64(data);
}
if (this.fileName == null || this.fileName.isEmpty()) {
throw new IllegalArgumentException(
String.format("No FileName was provided or resolved. " +
"Input file item was %s and input file name was %s.", file.toString(), fileName)
);
}
if (LOGGER.isLoggable(Level.FINE)) {
LOGGER.log(Level.FINE, "for {0} have {1} of length {2} after upload of ‘{3}’", new Object[] {getId(), this.fileName, unencrypted().length, name});
}
Expand Down

0 comments on commit 73e81a7

Please sign in to comment.