From 0cccb3c779b8dd29676a97b1c3e5a8c3f39185ef Mon Sep 17 00:00:00 2001 From: Dylan Starink Date: Tue, 22 Oct 2024 10:28:05 -0700 Subject: [PATCH] Deleted wierd null check for creating user --- app/femr/data/DataModelMapper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/femr/data/DataModelMapper.java b/app/femr/data/DataModelMapper.java index 188da574e..8c2196703 100644 --- a/app/femr/data/DataModelMapper.java +++ b/app/femr/data/DataModelMapper.java @@ -525,7 +525,7 @@ public ITabField createTabField(String name, Integer order, String placeholder, @Override public IUser createUser(String firstName, String lastName, String email, DateTime date, String notes, String password, boolean isDeleted, boolean isPasswordReset, List roles, int userId, String language_code) { - if (StringUtils.isNullOrWhiteSpace(firstName) || StringUtils.isNullOrWhiteSpace(password) || StringUtils.isNullOrWhiteSpace(email) || date == null || roles == null || roles.size() < 1 || language_code == null) { + if (StringUtils.isNullOrWhiteSpace(firstName) || StringUtils.isNullOrWhiteSpace(password) || StringUtils.isNullOrWhiteSpace(email) || date == null || roles == null || roles.isEmpty()) { return null; } IUser user = userProvider.get();