修复IMLoginManager的userInfo可能为空的问题
This commit is contained in:
parent
d747407d6b
commit
b641a65117
@ -271,7 +271,7 @@ public class IMLoginManager extends BaseCacheManager {
|
|||||||
.execute(new HttpCallback() {
|
.execute(new HttpCallback() {
|
||||||
@Override
|
@Override
|
||||||
public void onSuccess(int code, String msg, String[] info) {
|
public void onSuccess(int code, String msg, String[] info) {
|
||||||
if (info.length > 0) {
|
if (info.length > 0 && userInfo != null) {
|
||||||
if ("1".equals(info[0])) {
|
if ("1".equals(info[0])) {
|
||||||
userInfo.setIsAdmin("1");
|
userInfo.setIsAdmin("1");
|
||||||
InstructorRemarkManager.get(context).getNetInstructorRemark();
|
InstructorRemarkManager.get(context).getNetInstructorRemark();
|
||||||
|
Loading…
Reference in New Issue
Block a user