Closed danmidwood closed 3 years ago
Trying to bind a boolean value in a query works correctly when the value is true but does not work and throws an exception when the value is false.
true
false
The source of the exception:
https://github.com/Swirrl/grafter/blob/69ab1319612a802db25c5b0e2531f8a19b586594/src/grafter_2/rdf4j/sparql.clj#L240-L243
It is the val that is checked in the condition that fails when it is false. We should prevent nil values from being passed through but falses are still valid.
val
nil
Trying to bind a boolean value in a query works correctly when the value is
true
but does not work and throws an exception when the value isfalse
.The source of the exception:
https://github.com/Swirrl/grafter/blob/69ab1319612a802db25c5b0e2531f8a19b586594/src/grafter_2/rdf4j/sparql.clj#L240-L243
It is the
val
that is checked in the condition that fails when it isfalse
. We should preventnil
values from being passed through butfalse
s are still valid.