Fix a potential NPE
This commit is contained in:
parent
21b7ab1f25
commit
068e64dbcf
@ -204,7 +204,7 @@ public class FastLzFrameDecoder extends ByteToMessageDecoder {
|
||||
currentState = State.INIT_BLOCK;
|
||||
success = true;
|
||||
} finally {
|
||||
if (!success) {
|
||||
if (!success && uncompressed != null) {
|
||||
uncompressed.release();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user