dump #50

Merged
claudio.atzori merged 98 commits from miriam.baglioni/dnet-hadoop:dump into master 2020-11-04 18:07:01 +01:00
1 changed files with 25 additions and 20 deletions
Showing only changes of commit d2374e3b9e - Show all commits

View File

@ -135,12 +135,17 @@ public class SparkPrepareResultProject implements Serializable {
.orElse(null),
Optional
.ofNullable(op.getFundingtree())
.map(
value -> value
.map(value -> {
List<Funder> tmp = value
.stream()
.map(ft -> getFunder(ft.getValue()))
.collect(Collectors.toList())
.get(0))
.collect(Collectors.toList());
if (tmp.size() > 0) {
return tmp.get(0);
} else {
return null;
}
})
.orElse(null));
Optional<DataInfo> di = Optional.ofNullable(op.getDataInfo());