Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/java/net/jpountz/lz4/LZ4FrameInputStream.java
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,8 @@ public long skip(long n) throws IOException {

@Override
public int available() throws IOException {
//增加空判断,避免buffer为null时抛出 NullPointerException
if (null == buffer) return 0;
return buffer.remaining();
}

Expand Down