Skip to content

Commit f922195

Browse files
committed
fix document builder tests
1 parent b405536 commit f922195

File tree

1 file changed

+1
-0
lines changed
  • spring-ai-core/src/main/java/org/springframework/ai/document

1 file changed

+1
-0
lines changed

spring-ai-core/src/main/java/org/springframework/ai/document/Document.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,7 @@ public Builder content(String content) {
291291
}
292292

293293
public Builder media(List<Media> media) {
294+
Assert.notNull(media, "media cannot be null");
294295
this.media.addAll(media);
295296
return this;
296297
}

0 commit comments

Comments
 (0)