return the base instance when merging an empty enrichment
This commit is contained in:
parent
6ce896ca0a
commit
b54f4eabe7
2
pom.xml
2
pom.xml
|
@ -5,7 +5,7 @@
|
||||||
<groupId>eu.dnetlib.dhp</groupId>
|
<groupId>eu.dnetlib.dhp</groupId>
|
||||||
<artifactId>dhp-schemas</artifactId>
|
<artifactId>dhp-schemas</artifactId>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
<version>3.17.2-SNAPSHOT</version>
|
<version>3.17.2-fixInstance-SNAPSHOT</version>
|
||||||
|
|
||||||
<licenses>
|
<licenses>
|
||||||
<license>
|
<license>
|
||||||
|
|
|
@ -706,7 +706,7 @@ public class Result extends OafEntity implements Serializable {
|
||||||
return enrichmentResult;
|
return enrichmentResult;
|
||||||
}
|
}
|
||||||
if (enrichmentInstances == null) {
|
if (enrichmentInstances == null) {
|
||||||
return enrichmentResult;
|
return toEnrichInstances;
|
||||||
}
|
}
|
||||||
Map<String, Instance> ri = toInstanceMap(enrichmentInstances);
|
Map<String, Instance> ri = toInstanceMap(enrichmentInstances);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue