diff --git a/common/src/main/java/com/yunbao/common/manager/imrongcloud/MessageIMManager.java b/common/src/main/java/com/yunbao/common/manager/imrongcloud/MessageIMManager.java index b95bb4e37..734cae4ce 100644 --- a/common/src/main/java/com/yunbao/common/manager/imrongcloud/MessageIMManager.java +++ b/common/src/main/java/com/yunbao/common/manager/imrongcloud/MessageIMManager.java @@ -98,6 +98,9 @@ public class MessageIMManager { public void getSystemMessages() { systemNumber = 0; IMLoginModel userInfo = IMLoginManager.get(mContext).getUserInfo(); + if (userInfo == null) { + return; + } HttpClient.getInstance().get("Message.getLists", "getImUserInfo") .params("uid", userInfo.getId()) .params("token", userInfo.getToken())