We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c4cf78d commit 99246daCopy full SHA for 99246da
1 file changed
src/main/java/com/scalableminds/bloscjava/Blosc.java
@@ -36,6 +36,9 @@ private Blosc() {
36
* @return the compressed byte array
37
*/
38
public static byte[] compress(byte[] src, int typeSize, Compressor compressor, int compressorLevel, Shuffle shuffle, int blockSize, int numThreads) {
39
+ if (typeSize <1) {
40
+ throw new IllegalArgumentException("Argument typeSize needs to be larger than 0.");
41
+ }
42
return _compress(src, typeSize, compressorLevel, shuffle.shuffle, blockSize, compressor.compressor, numThreads);
43
}
44
0 commit comments