@@ -797,7 +797,7 @@ public class SbInfoServiceImpl extends BaseServiceImpl<SbInfoMapper, SbInfo, SbI
if(list != null && list.size() > 0){
list.forEach(item -> {
// 子设备且父设备在maps中不添加
- if(item.getIsChild() == 1){
+ if(item.getIsChild() != null && item.getIsChild() == 1){
if(StringUtils.isBlank(maps.get(item.getParentId()))){
resultList.add(item);
}