Skip to content

Commit

Permalink
fix: Option.get 호출 전 isPresent 를 호출하도록 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
BGuga committed Sep 5, 2023
1 parent 2909da4 commit 8661cb9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ private BodyExtractor() {
}

public static Map<String, String> convertBody(RequestBody requestBody) {
if (requestBody.getBody().isEmpty()) {
if (!requestBody.getBody().isPresent()) {
throw new IllegalArgumentException("Body 에 데이터가 없습니다.");
}
return Stream.of(requestBody.getBody().get().split(INVIDUAL_QUERY_PARAM_DIVIDER))
Expand Down

0 comments on commit 8661cb9

Please sign in to comment.