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();