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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions