diff --git a/src/main/java/in/koreatech/koin/admin/owner/service/AdminOwnerService.java b/src/main/java/in/koreatech/koin/admin/owner/service/AdminOwnerService.java index 4eeaa10ed..a70c0beb7 100644 --- a/src/main/java/in/koreatech/koin/admin/owner/service/AdminOwnerService.java +++ b/src/main/java/in/koreatech/koin/admin/owner/service/AdminOwnerService.java @@ -88,7 +88,7 @@ public AdminNewOwnersResponse getNewOwners(OwnersCondition ownersCondition) { if (ownerShopOptional.isPresent()) { OwnerShop ownerShop = ownerShopOptional.get(); - if (ownerShop.getShopId() != null) { + if (!Objects.isNull(ownerShop.getShopId())) { shop = adminShopRepository.findById(ownerShop.getShopId()).orElse(null); } }