1
0
Fork 0

Avoid NPEs in MergeUtils

This commit is contained in:
Claudio Atzori 2024-10-30 07:35:47 +01:00
parent 323c76eafc
commit 26cdc7e439
1 changed files with 3 additions and 1 deletions

View File

@ -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);
} }