|
@@ -292,8 +292,10 @@ public class IotInfoServiceImpl implements IotInfoService {
|
|
|
JsonNode files = itemNode.get("files");
|
|
|
List<String> fileNames = new ArrayList<>();
|
|
|
files.forEach(file -> {
|
|
|
- String name = file.get("name").asText();
|
|
|
- fileNames.add(name);
|
|
|
+ if (Objects.nonNull(file)&&Objects.nonNull(file.get("name"))) {
|
|
|
+ String name = file.get("name").asText();
|
|
|
+ fileNames.add(name);
|
|
|
+ }
|
|
|
});
|
|
|
Long fileClassId = null;
|
|
|
if (folderStructureNode != null) {
|