|
|
@@ -67,7 +67,9 @@ public class AuctionRecordService {
|
|
|
// }
|
|
|
if (auctionRecordDTO.getType().equals(AuctionRecordType.DEPOSIT) || auctionRecordDTO.isPurchased()) {
|
|
|
AuctionOrder auctionOrder = auctionOrderRepo.findFirstByAuctionRecordIdOrderByCreatedAt(record.getId());
|
|
|
- auctionRecordDTO.setOrderId(auctionOrder.getId());
|
|
|
+ if (auctionOrder != null) {
|
|
|
+ auctionRecordDTO.setOrderId(auctionOrder.getId());
|
|
|
+ }
|
|
|
}
|
|
|
auctionRecordDTOS.add(auctionRecordDTO);
|
|
|
});
|