Skip to content

Commit

Permalink
#31 [Update] 토큰 예외처리 수정 및 에러 코드 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Anna-Jin committed Jul 25, 2022
1 parent 81daa6a commit 587bdf2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/com/mpnp/baechelin/exception/ErrorCode.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public enum ErrorCode {
WRONG_INPUT(400, "E_WRI400", "입력 값을 확인해주세요."),
API_LOAD_FAILURE(500, "E-ALF500", "API 로딩에 실패하였습니다."),
API_NO_RESULT(500, "E-ANR500", "API 결과가 존재하지 않습니다."),
NULL_POINTER_EXCEPTION(500, "E-NPE500", " 값이 들어올 수 없습니다.");
NULL_POINTER_EXCEPTION(500, "E-NPE500", "Null 값이 들어올 수 없습니다.");

private final int status;
private final String code;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public AuthToken convertRefreshToken(String token) {
// 요청값으로 들어온 request를 가지고 header에서 String 형태의 access token을 뽑아 AuthToken 형태로 변환
public AuthToken convertAccessToken(HttpServletRequest request) {
String accessToken = HeaderUtil.getAccessToken(request);
return new AuthToken(accessToken, key);
return accessToken == null ? null : new AuthToken(accessToken, key);
}


Expand Down

0 comments on commit 587bdf2

Please sign in to comment.