Skip to content

Commit

Permalink
[ADD] link 값 nullable 분기처리 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
thguss committed Oct 26, 2023
1 parent 77f2994 commit a0cef4b
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@ public Alarm(AlarmRequestDTO requestDTO) {
this.attribute = requestDTO.attribute();
this.title = requestDTO.title();
this.content = requestDTO.content();
this.link = requestDTO.link();
if (nonNull(requestDTO.link())) {
this.link = requestDTO.link();
}
if (nonNull(requestDTO.isActive()) && nonNull(requestDTO.part())) {
this.isActive = requestDTO.isActive();
this.part = requestDTO.part();
Expand Down

0 comments on commit a0cef4b

Please sign in to comment.