turms-im / turms

🕊️ The world's most advanced open source instant messaging engine for 100K~10M concurrent users https://turms-im.github.io/docs
Apache License 2.0
1.72k stars 266 forks source link

CollectionUtil.isImmutable(Iterable<?> iterable) 不可变判断 #1507

Closed lovemianhuatang closed 2 months ago

lovemianhuatang commented 2 months ago

在这些地方都会返回EmptyList, EmptySet, EmptyMap 实例,但这些实例是不可变的,所以会报异常。

image

可以通过增加IMMUTABLE_EMPTY_INSTANCE判断来修复

image
JamesChenX commented 2 months ago

Thanks for reporting the bug. I have fixed it in both the develop and master branches and pushed the latest images, and you can pull the latest code and images now.