mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-03 01:14:44 +08:00
Merge pull request #561 from sandtechnology/Fix#550
Fix #550: NoSuchElementException when concatenating an EmptyMessageChain with another
This commit is contained in:
commit
89974923f8
@ -178,7 +178,9 @@ internal fun Message.followedByImpl(tail: Message): MessageChain {
|
||||
} else if (!tailUsed) {
|
||||
tailUsed = true
|
||||
iterator = tail.iterator()
|
||||
iterator.next()
|
||||
if (iterator.hasNext()) {
|
||||
iterator.next()
|
||||
} else null
|
||||
} else null
|
||||
}
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user