Because one shouldn't take the size of null things

This commit is contained in:
Ehren Kret 2022-06-17 15:03:25 -05:00
parent ecfa161da8
commit 51f37350eb
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import org.whispersystems.textsecuregcm.util.ExactlySize;
public record BatchIdentityCheckRequest(@Valid @Size(max = 1000) List<Element> elements) {
public record BatchIdentityCheckRequest(@Valid @NotNull @Size(max = 1000) List<Element> elements) {
/**
* @param aci account id