Skip to content

Commit

Permalink
GETP-330 fix: 프로젝트 조회 시 의뢰자 정보 미등록한 경우 NPE 발생 오류 해결 (#183)
Browse files Browse the repository at this point in the history
  • Loading branch information
scv1702 authored Nov 19, 2024
1 parent cb99a51 commit 3d6e7f2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ private ProjectClientResponse mosaicClient(final ProjectClientResponse client) {
}

private AddressResponse mosaicAddress(final AddressResponse address) {
if (address == null) {
return null;
}
return new AddressResponse(
mosaicMessage(address.zipcode()),
mosaicMessage(address.street()),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
package es.princip.getp.application.project.commission.dto.response;

import static com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL;

import com.fasterxml.jackson.annotation.JsonInclude;

import es.princip.getp.application.common.dto.response.AddressResponse;

import static com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL;

@JsonInclude(NON_NULL)
public record ProjectClientResponse(
@JsonInclude(NON_NULL) Long clientId,
Long clientId,
String nickname,
AddressResponse address
) {
Expand Down

0 comments on commit 3d6e7f2

Please sign in to comment.