Skip to content
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

Open
NaamaGertel opened this issue Aug 28, 2018 · 1 comment

Comments

@NaamaGertel
Copy link

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

@NaamaGertel
Copy link
Author

I suggested a solution for this:
#113

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant