Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle null value in io.minio.messages.Item.lastModified() method #1605

Merged
merged 3 commits into from
Jan 16, 2025

Conversation

hwaite
Copy link
Contributor

@hwaite hwaite commented Dec 21, 2024

Avert exception:

java.lang.NullPointerException: Cannot invoke "io.minio.messages.ResponseDate.zonedDateTime()" because "this.lastModified" is null.

Null values occur when doing a non-recursive, prefixed 'listObjects' call.

api/src/main/java/io/minio/messages/Item.java Outdated Show resolved Hide resolved
api/src/main/java/io/minio/messages/Item.java Outdated Show resolved Hide resolved
@balamurugana balamurugana changed the title Guard against NullPointerException for null Item.lastModified. Handle null value in io.minio.messages.Item.lastModified() method Jan 7, 2025
@harshavardhana harshavardhana merged commit 51940f6 into minio:master Jan 16, 2025
8 checks passed
@hwaite hwaite deleted the lastmodified-npe branch January 16, 2025 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants