lz4/lz4-java

NPE in LZ4FrameInputStream#available

lpireyn opened this issue · 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.

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

up