Skip to content

Commit 7f86b31

Browse files
committed
add missing null check
1 parent 94ab81a commit 7f86b31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

google-cloud-storage/src/main/java/com/google/cloud/storage/ParallelCompositeUploadBlobWriteSessionConfig.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -680,7 +680,7 @@ public abstract static class PartMetadataFieldDecorator implements Serializable
680680
*/
681681
@BetaApi
682682
public static PartMetadataFieldDecorator setCustomTimeInFuture(Duration timeInFuture) {
683-
// todo: validate non-null
683+
checkNotNull(timeInFuture, "timeInFuture must not be null");
684684
return new CustomTimeInFuture(timeInFuture);
685685
}
686686

0 commit comments

Comments
 (0)