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

NPE in LZ4FrameInputStream#available #180

Open
lpireyn opened this issue Aug 24, 2021 · 2 comments
Open

NPE in LZ4FrameInputStream#available #180

lpireyn opened this issue Aug 24, 2021 · 2 comments

Comments

@lpireyn
Copy link

lpireyn commented Aug 24, 2021

The available method in class LZ4FrameInputStream assumes the buffer field is not null. However, that field is set in the private readHeader method which may not have been executed yet. This results in a NullPointerException being thrown by the available method if it is called right after the LZ4FrameInputStream is created.

@odaira
Copy link
Member

odaira commented Aug 24, 2021

Thanks for the report! I'll take a look into the problem.

@darkleaf
Copy link

up

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

3 participants