mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-10 19:51:00 +00:00
[Fix] Fix MetricServiceImpl and PromptHelper NPE issue (#2191)
This commit is contained in:
@@ -633,6 +633,9 @@ public class MetricServiceImpl extends ServiceImpl<MetricDOMapper, MetricDO>
|
||||
|
||||
private DataItem getDataItem(MetricDO metricDO) {
|
||||
ModelResp modelResp = modelService.getModel(metricDO.getModelId());
|
||||
if (modelResp == null) {
|
||||
return null;
|
||||
}
|
||||
MetricResp metricResp = MetricConverter.convert2MetricResp(metricDO,
|
||||
ImmutableMap.of(modelResp.getId(), modelResp), Lists.newArrayList());
|
||||
fillDefaultAgg(metricResp);
|
||||
|
||||
Reference in New Issue
Block a user