Skip to content

Commit

Permalink
[BE] 게시글 전체 조회시 토픽이 파라미터에 포함되지 않아도 NPE 발생하지 않도록 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Jinwook94 committed Oct 26, 2023
1 parent 43d8832 commit 0bacade
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public CustomPageImpl<PostResponse> findAllPosts(Long memberId, int page, int si
boolean isLogin = authService.validateLogin(memberId);
Predicate combinedPredicate = getCombinedPredicate(params);
Set<Long> viewedPosts = getViewedPosts();
String topic = params.get("topic").get(0);
String topic = params.getOrDefault("topic", Collections.singletonList("")).get(0);
String search = params.getOrDefault("search", Collections.singletonList("")).get(0);

Page<PostResponse> postResponses = postRepositoryProxy.getPostPage(page, size, sort, topic, search, combinedPredicate)
Expand Down

0 comments on commit 0bacade

Please sign in to comment.