From 51f37350ebc0c62518bb8cf231aa42fdeeaf9613 Mon Sep 17 00:00:00 2001 From: Ehren Kret Date: Fri, 17 Jun 2022 15:03:25 -0500 Subject: [PATCH] Because one shouldn't take the size of null things --- .../textsecuregcm/entities/BatchIdentityCheckRequest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service/src/main/java/org/whispersystems/textsecuregcm/entities/BatchIdentityCheckRequest.java b/service/src/main/java/org/whispersystems/textsecuregcm/entities/BatchIdentityCheckRequest.java index b32e2da35..6d4ad32e9 100644 --- a/service/src/main/java/org/whispersystems/textsecuregcm/entities/BatchIdentityCheckRequest.java +++ b/service/src/main/java/org/whispersystems/textsecuregcm/entities/BatchIdentityCheckRequest.java @@ -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 elements) { +public record BatchIdentityCheckRequest(@Valid @NotNull @Size(max = 1000) List elements) { /** * @param aci account id