return the base instance when merging an empty enrichment

This commit is contained in:
Claudio Atzori 2023-10-20 14:33:03 +02:00
parent 6ce896ca0a
commit b54f4eabe7
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@
<groupId>eu.dnetlib.dhp</groupId>
<artifactId>dhp-schemas</artifactId>
<packaging>jar</packaging>
<version>3.17.2-SNAPSHOT</version>
<version>3.17.2-fixInstance-SNAPSHOT</version>
<licenses>
<license>

View File

@ -706,7 +706,7 @@ public class Result extends OafEntity implements Serializable {
return enrichmentResult;
}
if (enrichmentInstances == null) {
return enrichmentResult;
return toEnrichInstances;
}
Map<String, Instance> ri = toInstanceMap(enrichmentInstances);