Skip to content

Commit

Permalink
Merge pull request #73 from Donut-DONationUTile/feature/wallet
Browse files Browse the repository at this point in the history
fix: null exception error
  • Loading branch information
Kang1221 authored Apr 30, 2024
2 parents c6b7e72 + 62bf08d commit 42c7f31
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/zero/eight/donut/service/WalletService.java
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ public ApiResponse<?> walletMain() {
if (targetList != null || !targetList.isEmpty()) { // 보유 기프티콘이 있음
// 사용처별 기프티콘 개수 계산
Map<Store, Long> giftCountMap = countGiftsByStore(targetList);
cu = Math.toIntExact(giftCountMap.get(Store.CU));
gs25 = Math.toIntExact(giftCountMap.get(Store.GS25));
seveneleven = Math.toIntExact(giftCountMap.get(Store.SEVENELEVEN));
cu = Math.toIntExact(giftCountMap.getOrDefault(Store.CU, 0L));
gs25 = Math.toIntExact(giftCountMap.getOrDefault(Store.GS25, 0L));
seveneleven = Math.toIntExact(giftCountMap.getOrDefault(Store.SEVENELEVEN, 0L));

for (Gift g : targetList) {
// 기프티콘 총액 계산
Expand Down

0 comments on commit 42c7f31

Please sign in to comment.