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

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant