Skip to content

Commit a21d53b

Browse files
committed
GETP-330 fix: 프로젝트 조회 시 의뢰자 정보 미등록한 경우 NPE 발생 오류 해결
1 parent cb99a51 commit a21d53b

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

get-p-application/src/main/java/es/princip/getp/application/project/commission/ProjectDetailResponseMosaicResolver.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ private ProjectClientResponse mosaicClient(final ProjectClientResponse client) {
2727
}
2828

2929
private AddressResponse mosaicAddress(final AddressResponse address) {
30+
if (address == null) {
31+
return null;
32+
}
3033
return new AddressResponse(
3134
mosaicMessage(address.zipcode()),
3235
mosaicMessage(address.street()),

get-p-application/src/main/java/es/princip/getp/application/project/commission/dto/response/ProjectClientResponse.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
package es.princip.getp.application.project.commission.dto.response;
22

3-
import static com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL;
4-
53
import com.fasterxml.jackson.annotation.JsonInclude;
6-
74
import es.princip.getp.application.common.dto.response.AddressResponse;
85

6+
import static com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL;
7+
8+
@JsonInclude(NON_NULL)
99
public record ProjectClientResponse(
10-
@JsonInclude(NON_NULL) Long clientId,
10+
Long clientId,
1111
String nickname,
1212
AddressResponse address
1313
) {

0 commit comments

Comments
 (0)