修复空指针异常
parent
418e441dfc
commit
6968839f21
|
@ -289,6 +289,10 @@ public class SIPCommander implements ISIPCommander {
|
||||||
}
|
}
|
||||||
String streamMode = device.getStreamMode().toUpperCase();
|
String streamMode = device.getStreamMode().toUpperCase();
|
||||||
MediaServerConfig mediaInfo = storager.getMediaInfo();
|
MediaServerConfig mediaInfo = storager.getMediaInfo();
|
||||||
|
if (mediaInfo == null) {
|
||||||
|
logger.warn("点播时发现ZLM尚未连接...");
|
||||||
|
return;
|
||||||
|
}
|
||||||
String mediaPort = null;
|
String mediaPort = null;
|
||||||
// 使用动态udp端口
|
// 使用动态udp端口
|
||||||
if (rtpEnable) {
|
if (rtpEnable) {
|
||||||
|
@ -347,8 +351,6 @@ public class SIPCommander implements ISIPCommander {
|
||||||
storager.updateChannel(device.getDeviceId(), deviceChannel);
|
storager.updateChannel(device.getDeviceId(), deviceChannel);
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO 订阅SIP response,处理对方的错误返回
|
|
||||||
|
|
||||||
|
|
||||||
} catch ( SipException | ParseException | InvalidArgumentException e) {
|
} catch ( SipException | ParseException | InvalidArgumentException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
|
|
Loading…
Reference in New Issue