[HIDDEN]Error Messages

T

  • -
반응형

There is no PasswordEncoder mapped for the id "null"

 

상황 발생

PasswordEncoder의 matches 메서드를 이용해 원문과 인코딩된 문장을 비교할 때 인코딩 값으로 null 이 들어온 경우 java.lang.IllegalArgumentException이 발생하면서 메시지 출력됨.

// selected.getUpass() 값이 null인 경우에 발생함
if (pEncoder.matches(user.getUpass(), selected.getUpass())) {
    selected.setUpass("");
}

 

대책

전달된 파라미터에 null 값이 없는지 확인

 

 

반응형

'[HIDDEN]Error Messages' 카테고리의 다른 글

A  (0) 2020.10.27
C  (0) 2020.08.13
P  (0) 2020.07.21
N  (0) 2020.07.11
E  (0) 2020.06.29
Contents

포스팅 주소를 복사했습니다

이 글이 도움이 되었다면 공감 부탁드립니다.