Skip to content

Commit

Permalink
fix: null exception
Browse files Browse the repository at this point in the history
  • Loading branch information
Kang1221 committed Sep 11, 2024
1 parent 94ad320 commit b8cf416
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/co/orange/ddanzi/service/ItemService.java
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public ApiResponse<?> getItem(String itemId){
.salePrice(product.getOriginPrice()-discount.getDiscountPrice())
.orderId(order != null ? order.getId() : null)
.buyerNickName(order!=null ? order.getBuyer().getNickname() : null)
.addressInfo(addressService.setAddressInfo(order.getBuyer()))
.addressInfo(order!=null ? addressService.setAddressInfo(order.getBuyer()) : null)
.paidAt(payment!=null ? payment.getEndedAt():null)
.paymentMethod(payment!=null ? payment.getMethod():null)
.build();
Expand Down

0 comments on commit b8cf416

Please sign in to comment.