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;
|
currentState = State.INIT_BLOCK;
|
||||||
success = true;
|
success = true;
|
||||||
} finally {
|
} finally {
|
||||||
if (!success) {
|
if (!success && uncompressed != null) {
|
||||||
uncompressed.release();
|
uncompressed.release();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user