Fix critical issue with xml import

This commit is contained in:
George Kalampokis 2022-03-29 11:30:56 +03:00
parent 72507dd1b8
commit 3eb27c04f6
1 changed files with 1 additions and 1 deletions

View File

@ -1679,7 +1679,7 @@ public class DataManagementPlanManager {
if (dataManagementPlans.get(0).getPublicDate() != null) {
extraPropertiesMap.put("publicDate", dataManagementPlans.get(0).getPublicDate());
}
if (dataManagementPlans.get(0).getCosts() != null) {
if (dataManagementPlans.get(0).getCosts() != null && !dataManagementPlans.get(0).getCosts().isEmpty()) {
extraPropertiesMap.put("costs", mapper.readValue(dataManagementPlans.get(0).getCosts(), ArrayList.class));
}
dm.setExtraProperties(extraPropertiesMap);