mirror of
https://gitee.com/pan648540858/wvp-GB28181-pro.git
synced 2026-05-25 06:27:50 +08:00
修复收到 Bye 时触发的一个 NPE
This commit is contained in:
parent
cf3204de71
commit
3553c2911c
@ -84,6 +84,8 @@ public class MediaInfo {
|
|||||||
Long bytesSpeed = jsonObject.getLong("bytesSpeed");
|
Long bytesSpeed = jsonObject.getLong("bytesSpeed");
|
||||||
if (totalReaderCount != null) {
|
if (totalReaderCount != null) {
|
||||||
mediaInfo.setReaderCount(totalReaderCount);
|
mediaInfo.setReaderCount(totalReaderCount);
|
||||||
|
} else {
|
||||||
|
mediaInfo.setReaderCount(0);
|
||||||
}
|
}
|
||||||
if (online != null) {
|
if (online != null) {
|
||||||
mediaInfo.setOnline(online);
|
mediaInfo.setOnline(online);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user