forked from D-Net/dnet-hadoop
Avoid NPEs in MergeUtils
This commit is contained in:
parent
323c76eafc
commit
26cdc7e439
|
@ -715,7 +715,9 @@ public class MergeUtils {
|
||||||
private static String spKeyExtractor(StructuredProperty sp) {
|
private static String spKeyExtractor(StructuredProperty sp) {
|
||||||
return Optional
|
return Optional
|
||||||
.ofNullable(sp)
|
.ofNullable(sp)
|
||||||
.map(s -> Joiner.on("||").join(qualifierKeyExtractor(s.getQualifier()), s.getValue()))
|
.map(s -> Joiner.on("||")
|
||||||
|
.useForNull("")
|
||||||
|
.join(qualifierKeyExtractor(s.getQualifier()), s.getValue()))
|
||||||
.orElse(null);
|
.orElse(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue