修复IMLoginManager的userInfo可能为空的问题

This commit is contained in:
zlzw 2022-12-14 13:42:36 +08:00
parent d747407d6b
commit b641a65117

View File

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