Skip to content

Commit bed58b6

Browse files
authored
Make bucket name optional in listenBucketNotification() API (#1250)
Signed-off-by: Bala.FA <bala@minio.io>
1 parent f56b176 commit bed58b6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

api/src/main/java/io/minio/ListenBucketNotificationArgs.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,9 @@ private void validateEvents(String[] events) {
4949
}
5050

5151
protected void validate(ListenBucketNotificationArgs args) {
52-
super.validate(args);
52+
if (args.bucketName != null) {
53+
super.validate(args);
54+
}
5355
validateEvents(args.events);
5456
}
5557

0 commit comments

Comments
 (0)