lz4-java icon indicating copy to clipboard operation
lz4-java copied to clipboard

NPE in LZ4FrameInputStream#available

Open lpireyn opened this issue 4 years ago • 2 comments

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.

lpireyn avatar Aug 24 '21 16:08 lpireyn

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

odaira avatar Aug 24 '21 19:08 odaira

up

darkleaf avatar Apr 21 '22 12:04 darkleaf