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.
The
available
method in classLZ4FrameInputStream
assumes thebuffer
field is notnull
. However, that field is set in the privatereadHeader
method which may not have been executed yet. This results in aNullPointerException
being thrown by theavailable
method if it is called right after theLZ4FrameInputStream
is created.