forked from D-Net/dnet-hadoop
[EOSC TAG] added fix for NPE on subjects
This commit is contained in:
parent
37cfda0fc5
commit
3329b6ce6b
|
@ -183,6 +183,8 @@ public class SparkEoscTag {
|
|||
}
|
||||
|
||||
private static boolean containsCriteriaNotebook(Software s) {
|
||||
if(!Optional.ofNullable(s.getSubject()).isPresent())
|
||||
return false;
|
||||
if (s.getSubject().stream().anyMatch(sbj -> sbj.getValue().toLowerCase().contains("jupyter")))
|
||||
return true;
|
||||
if (s
|
||||
|
|
Loading…
Reference in New Issue