diff --git a/service/src/main/java/org/whispersystems/textsecuregcm/controllers/ProfileController.java b/service/src/main/java/org/whispersystems/textsecuregcm/controllers/ProfileController.java index 9d15f26f8..ef4115d1b 100644 --- a/service/src/main/java/org/whispersystems/textsecuregcm/controllers/ProfileController.java +++ b/service/src/main/java/org/whispersystems/textsecuregcm/controllers/ProfileController.java @@ -328,7 +328,7 @@ public class ProfileController { @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) @Path("/identity_check/batch") - public CompletableFuture runBatchIdentityCheck(BatchIdentityCheckRequest request) { + public CompletableFuture runBatchIdentityCheck(@NotNull @Valid BatchIdentityCheckRequest request) { return CompletableFuture.supplyAsync(() -> { List responseElements = Collections.synchronizedList(new ArrayList<>()); BatchIdentityCheckResponse response = new BatchIdentityCheckResponse(responseElements);