Fix not-null assertion

This commit is contained in:
Fu Cheng
2024-07-13 20:55:07 +08:00
committed by Christian Tzolov
parent 0a42bf01f3
commit 0ebf4abc2c

View File

@@ -86,7 +86,7 @@ public class PdfDocumentReaderConfig {
*/
public PdfDocumentReaderConfig.Builder withPageExtractedTextFormatter(
ExtractedTextFormatter pageExtractedTextFormatter) {
Assert.notNull(pagesPerDocument >= 0, "PageExtractedTextFormatter must not be null.");
Assert.notNull(pageExtractedTextFormatter, "PageExtractedTextFormatter must not be null.");
this.pageExtractedTextFormatter = pageExtractedTextFormatter;
return this;
}