Missing null check when retrieving the owner of an Amazon S3 object Medium

Amazon S3 API ObjectSummary.getOwner() returns the owner of this object or returns null if the requester does not have the permission to see the object's ownership. Missing a null check on its return value can result in a null dereference error.

Detector ID
java/amazon-s3-null-check-on-objectsummary-getowner@v1.0
Category
Common Weakness Enumeration (CWE) external icon
-