This commit is contained in:
Miriam Baglioni 2023-07-07 14:06:54 +02:00
parent a535e926f7
commit c875a98ec6
2 changed files with 6 additions and 2 deletions

View File

@ -111,6 +111,11 @@ public class SparkPrepareResultProject implements Serializable {
it.forEachRemaining(c -> {
eu.dnetlib.dhp.schema.oaf.Project op = c._1();
if (!projectSet.contains(op.getId())) {
if (!Optional.ofNullable(op.getCode()).isPresent()
|| !Optional.ofNullable(op.getCode().getValue()).isPresent()) {
throw new RuntimeException("No project code for " + p.getId());
}
projList
.add(getProject(op, c._2));

View File

@ -102,8 +102,7 @@
<junit-jupiter.version>5.6.1</junit-jupiter.version>
<dhp.commons.lang.version>3.5</dhp.commons.lang.version>
<dhp.guava.version>11.0.2</dhp.guava.version>
<!-- <dhp-schemas.version>[2.13.2-SNAPSHOT]</dhp-schemas.version>-->
<dhp-schemas.version>[2.13.1-patched]</dhp-schemas.version>
<dhp-schemas.version>[3.17.1]</dhp-schemas.version>
</properties>
</project>