Fix critical issue with xml import
This commit is contained in:
parent
72507dd1b8
commit
3eb27c04f6
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue