diff --git a/src/main/java/org/elasticsearch/common/compress/CompressedString.java b/src/main/java/org/elasticsearch/common/compress/CompressedString.java index 784c57c527e..aca1d45f86d 100644 --- a/src/main/java/org/elasticsearch/common/compress/CompressedString.java +++ b/src/main/java/org/elasticsearch/common/compress/CompressedString.java @@ -47,7 +47,7 @@ public final class CompressedString { } else { BytesArray bytesArray = data.toBytesArray(); this.bytes = CompressorFactory.defaultCompressor().compress(bytesArray.array(), bytesArray.arrayOffset(), bytesArray.length()); - assert CompressorFactory.compressor(bytes) == CompressorFactory.defaultCompressor(); + assert CompressorFactory.compressor(bytes) != null; } }