Skip to content

Commit

Permalink
fix: expoToken null일 경우 검사
Browse files Browse the repository at this point in the history
  • Loading branch information
ozzing committed Nov 11, 2022
1 parent 958b211 commit ac9aa29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/ceos/bankids/mapper/UserMapper.java
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public class UserMapper {
@Transactional
public UserDTO updateUserType(User user, UserTypeRequest userTypeRequest) {
// 이미 로그인한 유저인지 검사
if (user.getExpoToken().contains("ExponentPushToken")) {
if (user.getExpoToken() != null && user.getExpoToken().contains("ExponentPushToken")) {
throw new BadRequestException(ErrorCode.USER_ALREADY_LOGINED.getErrorCode());
}

Expand Down

0 comments on commit ac9aa29

Please sign in to comment.