Commit 01cceaa3 authored by devesh bajpai's avatar devesh bajpai
Browse files

add empty check

parent a574749f
Pipeline #36969 failed with stages
in 15 seconds
......@@ -26,6 +26,9 @@ public class MappingService {
String sourceName = kindUtil.retrieveSourceName(kind);
int majorVersion = kindUtil.retrieveMajorVersion(kind);
List<MappingInfo> mappingInfos = getMappingInfos(authorityName, entityNamePrefix, sourceName, majorVersion);
if(mappingInfos.isEmpty()) {
return Collections.emptyList();
}
return getMappingDefinitions(mappingInfos);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment