koryphe icon indicating copy to clipboard operation
koryphe copied to clipboard

If Serialisation null bug

Open GCHQDev404 opened this issue 2 years ago • 2 comments

Reported bug.

"Serialise and deserialise the IF function with a null condition it sets the condition to false, meaning you can't use the predicate"

GCHQDev404 avatar Nov 15 '22 16:11 GCHQDev404

@t92549 is this linked with the other null or empty issues you was examining?

GCHQDev404 avatar Nov 15 '22 16:11 GCHQDev404

I don't think so, the default value should be null: https://github.com/gchq/koryphe/blob/812009bd172b19705923c86c6bed5baa34ec13f8/core/src/main/java/uk/gov/gchq/koryphe/impl/function/If.java#L63

t92549 avatar Nov 15 '22 16:11 t92549