We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cc8853f commit 3748fcdCopy full SHA for 3748fcd
silo-api/src/main/java/se/l4/silo/internal/EqualsMatcherImpl.java
@@ -30,7 +30,7 @@ public V getValue()
30
@Override
31
public <NV> Matcher<NV> map(Function<V, NV> func)
32
{
33
- return new EqualsMatcherImpl<>(func.apply(value));
+ return new EqualsMatcherImpl<>(value == null ? null : func.apply(value));
34
}
35
36
silo-api/src/main/java/se/l4/silo/internal/RangeMatcherImpl.java
@@ -59,9 +59,9 @@ public boolean isUpperInclusive()
59
public <NV> Matcher<NV> map(Function<T, NV> func)
60
61
return new RangeMatcherImpl<>(
62
- func.apply(lower),
+ lower == null ? null : func.apply(lower),
63
lowerInclusive,
64
- func.apply(upper),
+ upper == null ? null : func.apply(upper),
65
upperInclusive
66
);
67
0 commit comments