问题
List出现了All elements are null
List<String> tbNameList = sourceUuidList.stream().filter(item -> !targetUuidList.contains(item)).collect(toList());
if (tbNameList != null && tbNameList.size() > 0) {
//
}
解决
排除空值tbNameList.removeIf(Objects::isNull);
List<String> tbNameList = sourceUuidList.stream().filter(item -> !targetUuidList.contains(item)).collect(toList());
tbNameList.removeIf(Objects::isNull);
if (tbNameList != null && tbNameList.size() > 0) {
//
}