修复空指针异常
parent
695f9b7f4d
commit
ab34cb37f3
|
@ -611,6 +611,10 @@ public class SIPCommander implements ISIPCommander {
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public void streamByeCmd(Device device, String channelId, String stream, String callId, SipSubscribe.Event okEvent) throws InvalidArgumentException, SipException, ParseException, SsrcTransactionNotFoundException {
|
public void streamByeCmd(Device device, String channelId, String stream, String callId, SipSubscribe.Event okEvent) throws InvalidArgumentException, SipException, ParseException, SsrcTransactionNotFoundException {
|
||||||
|
if (device == null) {
|
||||||
|
logger.warn("[发送BYE] device为null");
|
||||||
|
return;
|
||||||
|
}
|
||||||
SsrcTransaction ssrcTransaction = streamSession.getSsrcTransaction(device.getDeviceId(), channelId, callId, stream);
|
SsrcTransaction ssrcTransaction = streamSession.getSsrcTransaction(device.getDeviceId(), channelId, callId, stream);
|
||||||
if (ssrcTransaction == null) {
|
if (ssrcTransaction == null) {
|
||||||
throw new SsrcTransactionNotFoundException(device.getDeviceId(), channelId, callId, stream);
|
throw new SsrcTransactionNotFoundException(device.getDeviceId(), channelId, callId, stream);
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
package com.genersoft.iot.vmp.storager.impl;
|
package com.genersoft.iot.vmp.storager.impl;
|
||||||
|
|
||||||
|
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||||
import com.genersoft.iot.vmp.conf.SipConfig;
|
import com.genersoft.iot.vmp.conf.SipConfig;
|
||||||
import com.genersoft.iot.vmp.conf.UserSetting;
|
import com.genersoft.iot.vmp.conf.UserSetting;
|
||||||
import com.genersoft.iot.vmp.gb28181.bean.*;
|
import com.genersoft.iot.vmp.gb28181.bean.*;
|
||||||
|
@ -38,6 +39,7 @@ import java.util.concurrent.ConcurrentHashMap;
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("rawtypes")
|
@SuppressWarnings("rawtypes")
|
||||||
@Component
|
@Component
|
||||||
|
@DS("master")
|
||||||
public class VideoManagerStorageImpl implements IVideoManagerStorage {
|
public class VideoManagerStorageImpl implements IVideoManagerStorage {
|
||||||
|
|
||||||
private final Logger logger = LoggerFactory.getLogger(VideoManagerStorageImpl.class);
|
private final Logger logger = LoggerFactory.getLogger(VideoManagerStorageImpl.class);
|
||||||
|
|
Loading…
Reference in New Issue