if (user == null) {
throw new NotFoundException(String.format("User with login '%s' has not been found", login));
}
return user;
}
<BUG>@CheckForNull
public UserDto selectNullableByScmAccountOrLoginOrName(DbSession session, String scmAccount) {

return mapper(session).selectNullableByScmAccountOrLoginOrName(scmAccount);
</BUG>
}

if (user == null) {
throw new NotFoundException(String.format("User with login '%s' has not been found", login));
}
return user;
}
public List<UserDto> selectNullableByScmAccountOrLoginOrEmail(DbSession session, String scmAccountOrLoginOrEmail) {
return mapper(session).selectNullableByScmAccountOrLoginOrEmail(scmAccountOrLoginOrEmail);
}
