forked from lz4/lz4-java
-
Notifications
You must be signed in to change notification settings - Fork 20
Closed
Description
I'm duplicating the open issue lz4#180 here:
The
availablemethod in classLZ4FrameInputStreamassumes thebufferfield is notnull. However, that field is set in the privatereadHeadermethod which may not have been executed yet. This results in aNullPointerExceptionbeing thrown by theavailablemethod if it is called right after theLZ4FrameInputStreamis created.
This bug was introduced with lz4#146, as no check has been added to available like to other methods.
I'll take the liberty of creating a PR for it, hope that's fine.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels