fix: 修复查询接口依赖关系时报null
This commit is contained in:
parent
341bc4e182
commit
4780eb2f05
|
@ -1712,6 +1712,9 @@ public class ApiDefinitionService {
|
|||
} else {
|
||||
apiDefinition = apiMap.get(relationshipEdge.getSourceId());
|
||||
}
|
||||
if (apiDefinition == null) {
|
||||
continue;
|
||||
}
|
||||
relationshipEdgeDTO.setTargetName(apiDefinition.getName());
|
||||
relationshipEdgeDTO.setCreator(apiDefinition.getUserId());
|
||||
relationshipEdgeDTO.setTargetNum(apiDefinition.getNum());
|
||||
|
|
Loading…
Reference in New Issue