Skip to content

Commit

Permalink
Deleted wierd null check for creating user
Browse files Browse the repository at this point in the history
  • Loading branch information
StarDylan committed Oct 22, 2024
1 parent 00c28bb commit 0cccb3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/femr/data/DataModelMapper.java
Original file line number Diff line number Diff line change
Expand Up @@ -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<? extends IRole> 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();
Expand Down

0 comments on commit 0cccb3c

Please sign in to comment.