Skip to content

Commit

Permalink
Fix alexmojaki#37 - use String.valueOf to protect against null upload…
Browse files Browse the repository at this point in the history
…Id in toString
  • Loading branch information
kcalcagno committed Nov 3, 2021
1 parent 6ced8f9 commit 3f46c49
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,7 @@ private void uploadStreamPart(StreamPart part) {
@Override
public String toString() {
return String.format("[Manager uploading to %s/%s with id %s]",
bucketName, putKey, Utils.skipMiddle(uploadId, 21));
bucketName, putKey, Utils.skipMiddle(String.valueOf(uploadId), 21));
}

// These methods are intended to be overridden for more specific interactions with the AWS API.
Expand Down

0 comments on commit 3f46c49

Please sign in to comment.