Skip to content

Commit 51940f6

Browse files
authored
Handle null value in io.minio.messages.Item.lastModified() method (#1605)
1 parent 5ce4bea commit 51940f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/src/main/java/io/minio/messages/Item.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public String objectName() {
8686

8787
/** Returns last modified time of the object. */
8888
public ZonedDateTime lastModified() {
89-
return lastModified.zonedDateTime();
89+
return (lastModified == null) ? null : lastModified.zonedDateTime();
9090
}
9191

9292
/** Returns ETag of the object. */

0 commit comments

Comments
 (0)