diff --git a/src/java/org/apache/cassandra/io/compress/LZ4Compressor.java b/src/java/org/apache/cassandra/io/compress/LZ4Compressor.java index be01eb534b8..8d75421a57a 100644 --- a/src/java/org/apache/cassandra/io/compress/LZ4Compressor.java +++ b/src/java/org/apache/cassandra/io/compress/LZ4Compressor.java @@ -153,7 +153,7 @@ public int uncompress(byte[] input, int inputOffset, int inputLength, byte[] out outputOffset, decompressedLength); } - catch (LZ4Exception e) + catch (LZ4Exception | IndexOutOfBoundsException e) { throw new IOException(e); } @@ -180,7 +180,7 @@ public void uncompress(ByteBuffer input, ByteBuffer output) throws IOException input.position(input.position() + compressedLength); output.position(output.position() + decompressedLength); } - catch (LZ4Exception e) + catch (LZ4Exception | IndexOutOfBoundsException e) { throw new IOException(e); }