forked from D-Net/dnet-hadoop
[cleaning] avoid NPE
This commit is contained in:
parent
389dd25430
commit
8b44afe5e5
|
@ -157,7 +157,8 @@ public class CleanCfHbSparkJob {
|
||||||
r.getInstance().stream().map(Instance::getHostedby).map(KeyValue::getKey),
|
r.getInstance().stream().map(Instance::getHostedby).map(KeyValue::getKey),
|
||||||
r.getInstance().stream().map(Instance::getCollectedfrom).map(KeyValue::getKey)))
|
r.getInstance().stream().map(Instance::getCollectedfrom).map(KeyValue::getKey)))
|
||||||
.distinct()
|
.distinct()
|
||||||
.map(s -> asIdCfHbMapping(r.getId(), s))
|
.filter(StringUtils::isNotBlank)
|
||||||
|
.map(cfHb -> asIdCfHbMapping(r.getId(), cfHb))
|
||||||
.iterator();
|
.iterator();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue