From 27b6d52a179754a9e59d24fb801905d7f28d3a74 Mon Sep 17 00:00:00 2001 From: WendyYang Date: Mon, 8 May 2023 15:16:19 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=B7=E6=96=B0session=E6=97=B6=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E4=B8=8D=E5=AD=98=E5=9C=A8=E5=88=99=E8=B7=B3=E8=BF=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/ningdatech/pmapi/user/manage/UserAuthManage.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/user/manage/UserAuthManage.java b/pmapi/src/main/java/com/ningdatech/pmapi/user/manage/UserAuthManage.java index f5c820d..a34675c 100644 --- a/pmapi/src/main/java/com/ningdatech/pmapi/user/manage/UserAuthManage.java +++ b/pmapi/src/main/java/com/ningdatech/pmapi/user/manage/UserAuthManage.java @@ -33,6 +33,9 @@ public class UserAuthManage { @SuppressWarnings({"rawtypes", "unchecked"}) public void refreshSession(Long userId) { UserFullInfoDTO userFullInfo = userInfoHelper.getUserFullInfo(userId); + if (userFullInfo == null) { + return; + } List sessionIds = getSessionIds(userFullInfo.getUsername()); if (sessionIds.isEmpty()) { return;