Skip to content

Commit

Permalink
fix(portal): Optimized the robustness of the code
Browse files Browse the repository at this point in the history
  • Loading branch information
youngzil committed Nov 23, 2024
1 parent 22ebb4f commit edb9d8b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ private List<Integer> getRateLimit(List<Long> consumerIdList) {
List<Integer> list = new ArrayList<>(consumerIdList.size());
for (Long consumerId : consumerIdList) {
ConsumerToken consumerToken = consumerTokenRepository.findByConsumerId(consumerId);
Integer rateLimit = consumerToken.getRateLimit();
Integer rateLimit = consumerToken != null ? consumerToken.getRateLimit() : 0;
list.add(rateLimit);
}

Expand Down

0 comments on commit edb9d8b

Please sign in to comment.