This commit is contained in:
parent
a535e926f7
commit
c875a98ec6
|
@ -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));
|
||||
|
||||
|
|
3
pom.xml
3
pom.xml
|
@ -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>
|
Loading…
Reference in New Issue