Skip to content

Commit ed5128f

Browse files
committed
add assert not null
1 parent dea3635 commit ed5128f

File tree

1 file changed

+1
-0
lines changed
  • x-pack/plugin/watcher/src/main/java/org/elasticsearch/xpack/watcher/notification/email

1 file changed

+1
-0
lines changed

x-pack/plugin/watcher/src/main/java/org/elasticsearch/xpack/watcher/notification/email/Attachment.java

+1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ protected Attachment(String id, String name, String contentType, boolean inline)
4242
protected Attachment(String id, String name, String contentType, boolean inline, Set<String> warnings) {
4343
super(id, name, contentType);
4444
this.inline = inline;
45+
assert warnings != null;
4546
this.warnings = warnings;
4647
}
4748

0 commit comments

Comments
 (0)