Skip to content
This repository was archived by the owner on Feb 26, 2025. It is now read-only.
This repository was archived by the owner on Feb 26, 2025. It is now read-only.

S3Utils.getS3PosixFileAttributes can return null permissions for directories #112

Description

@NaamaGertel

In line 100 of S3Utils.getS3PosixFileAttributes method, if attr.isDirectory() we don't initialize the permissions. This can throw NullPointerException for user that don't expect this.

https://github.com/Upplication/Amazon-S3-FileSystem-NIO2/blob/master/src/main/java/com/upplication/s3fs/util/S3Utils.java#L100

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions