From 8cca2af027517c1374a18b4c0f6109228d7b54d4 Mon Sep 17 00:00:00 2001 From: geek Date: Mon, 30 Apr 2018 21:17:54 +0900 Subject: [PATCH] ing --- .../central/module/member/service/CentralMemberService.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/com/loafle/overflow/central/module/member/service/CentralMemberService.java b/src/main/java/com/loafle/overflow/central/module/member/service/CentralMemberService.java index 682f1e7..39c8128 100644 --- a/src/main/java/com/loafle/overflow/central/module/member/service/CentralMemberService.java +++ b/src/main/java/com/loafle/overflow/central/module/member/service/CentralMemberService.java @@ -173,6 +173,10 @@ public class CentralMemberService implements MemberService { String email = SessionMetadata.getTargetID(); Member preMember = this.memberDAO.findByEmail(member.getEmail()); + if (null == preMember || 0 >= preMember.getId()) { + throw new OverflowException("SigninId Not Exist()", new Throwable()); + } + member.setId(preMember.getId()); if (null != pw && !pw.equals("")) { boolean checkPass = this.isPasswordStrong(pw); @@ -192,6 +196,7 @@ public class CentralMemberService implements MemberService { } if (member.getStatus() == null || member.getStatus().getId() <= 0) { + member.setStatus(new MetaMemberStatus()); member.getStatus().setId(preMember.getStatus().getId()); } return this.modify(member);