Commit ce56d9c0bf35cdea6d3fdbf0f5fee9ddb6280e75
1 parent
b97db305
增加获取code为null时的条件
Showing
1 changed file
with
1 additions
and
1 deletions
src/main/java/com/genersoft/iot/vmp/service/impl/StreamProxyServiceImpl.java
| ... | ... | @@ -248,7 +248,7 @@ public class StreamProxyServiceImpl implements IStreamProxyService { |
| 248 | 248 | StreamProxyItem streamProxyDto = videoManagerStorager.queryStreamProxy(app, stream); |
| 249 | 249 | if (streamProxyDto != null && streamProxyDto.isEnable()) { |
| 250 | 250 | JSONObject jsonObject = removeStreamProxyFromZlm(streamProxyDto); |
| 251 | - if (jsonObject.getInteger("code") == 0) { | |
| 251 | + if (null==jsonObject.getInteger("code") || jsonObject.getInteger("code") == 0) { | |
| 252 | 252 | streamProxyDto.setEnable(false); |
| 253 | 253 | result = videoManagerStorager.updateStreamProxy(streamProxyDto); |
| 254 | 254 | } | ... | ... |