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();