Commit 57a78b72 by zhangchengbo

fix:非空判断

parent c41efa50
......@@ -461,6 +461,7 @@ class MainActivity : SimpleActivity() {
val messages: java.util.ArrayList<Message> = getMessages(firstConversation.threadId, true)
Log.d(TAG, " setFirstConversationAndUpdateData: 执行查询会话 messages 数据库 =:${GsonUtil.parseListToJson(messages)} ")
if(messages.isEmpty()) return
val lastMsg: Message = messages.last()
Log.d(TAG, "setFirstConversationAndUpdateData: lastMsg = ${Gson().toJson(lastMsg)}")
firstConversation.snippet = lastMsg.body
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment