Commit ce56d9c0bf35cdea6d3fdbf0f5fee9ddb6280e75

Authored by luoshuyue
1 parent b97db305

增加获取code为null时的条件

src/main/java/com/genersoft/iot/vmp/service/impl/StreamProxyServiceImpl.java
@@ -248,7 +248,7 @@ public class StreamProxyServiceImpl implements IStreamProxyService { @@ -248,7 +248,7 @@ public class StreamProxyServiceImpl implements IStreamProxyService {
248 StreamProxyItem streamProxyDto = videoManagerStorager.queryStreamProxy(app, stream); 248 StreamProxyItem streamProxyDto = videoManagerStorager.queryStreamProxy(app, stream);
249 if (streamProxyDto != null && streamProxyDto.isEnable()) { 249 if (streamProxyDto != null && streamProxyDto.isEnable()) {
250 JSONObject jsonObject = removeStreamProxyFromZlm(streamProxyDto); 250 JSONObject jsonObject = removeStreamProxyFromZlm(streamProxyDto);
251 - if (jsonObject.getInteger("code") == 0) { 251 + if (null==jsonObject.getInteger("code") || jsonObject.getInteger("code") == 0) {
252 streamProxyDto.setEnable(false); 252 streamProxyDto.setEnable(false);
253 result = videoManagerStorager.updateStreamProxy(streamProxyDto); 253 result = videoManagerStorager.updateStreamProxy(streamProxyDto);
254 } 254 }