From b641a65117ec7db20b860c1a702a531367b74664 Mon Sep 17 00:00:00 2001 From: zlzw <583819556@qq.com> Date: Wed, 14 Dec 2022 13:42:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DIMLoginManager=E7=9A=84userIn?= =?UTF-8?q?fo=E5=8F=AF=E8=83=BD=E4=B8=BA=E7=A9=BA=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/yunbao/common/manager/IMLoginManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/java/com/yunbao/common/manager/IMLoginManager.java b/common/src/main/java/com/yunbao/common/manager/IMLoginManager.java index 1346b4382..edd422440 100644 --- a/common/src/main/java/com/yunbao/common/manager/IMLoginManager.java +++ b/common/src/main/java/com/yunbao/common/manager/IMLoginManager.java @@ -271,7 +271,7 @@ public class IMLoginManager extends BaseCacheManager { .execute(new HttpCallback() { @Override public void onSuccess(int code, String msg, String[] info) { - if (info.length > 0) { + if (info.length > 0 && userInfo != null) { if ("1".equals(info[0])) { userInfo.setIsAdmin("1"); InstructorRemarkManager.get(context).getNetInstructorRemark();