修复收到 Bye 时触发的一个 NPE

This commit is contained in:
南宫茜 2025-01-21 17:11:28 +08:00 committed by GitHub
parent cf3204de71
commit 3553c2911c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -84,6 +84,8 @@ public class MediaInfo {
Long bytesSpeed = jsonObject.getLong("bytesSpeed");
if (totalReaderCount != null) {
mediaInfo.setReaderCount(totalReaderCount);
} else {
mediaInfo.setReaderCount(0);
}
if (online != null) {
mediaInfo.setOnline(online);