Skip to content

Commit

Permalink
fix : null handling
Browse files Browse the repository at this point in the history
  • Loading branch information
NameIsUser06 committed Jan 8, 2024
1 parent fa6c815 commit a972049
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,9 @@ public ResponseEntity<List<FriendResponse>> execute(HttpServletRequest httpServl
.authority(friend.getAuthority())
.statusMessage(friend.getStatusMessage())
.name(friend.getName())
.url(serverProperties.getUrl() + "/file?fileId=" + friend.getFile().getId())
.url(friend.getFile() != null ? serverProperties.getUrl() + "/file?fileId=" + friend.getFile().getId() : null)
.build())
.toList());

}
}

0 comments on commit a972049

Please sign in to comment.