diff --git a/mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/network/protocol/packet/chat/receive/OnlinePush.ReqPush.kt b/mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/network/protocol/packet/chat/receive/OnlinePush.ReqPush.kt index b84d564e3..161167c40 100644 --- a/mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/network/protocol/packet/chat/receive/OnlinePush.ReqPush.kt +++ b/mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/network/protocol/packet/chat/receive/OnlinePush.ReqPush.kt @@ -81,7 +81,9 @@ internal object OnlinePushReqPush : IncomingPacketFactory = reqPushMsg.vMsgInfos.deco(bot.client) { msgInfo -> when (msgInfo.shMsgType.toInt()) { 732 -> { - val group = bot.getGroup(readUInt().toLong()) + val group = bot.getGroupOrNull(readUInt().toLong()) + ?: return@deco emptySequence() // group has not been initialized + GroupImpl.checkIsInstance(group) val internalType = readByte().toInt()