Having null support enabled, comparing a complex value against null throws an ExpressionException when using the non-typesafe operator ==. Using the typesafe operator === works as there is no attempt to cast the complex value.
This is an unexpected behavior and casting to String seems to indicate an improper fallback.
This bug is possible related to .
I've checked this ticket & confirmed the issue happened on lucee latest version 126.96.36.199-SNAPSHOT. If we check as per ACF means, structIsNull = (s == null); lucee throws an error for this. But, ACF works fine. If we use serialize(struct), it will works fine.
CFML does not support comparsion of complex objects (struct, array,…), why acf does allow this in that case but not others makes no sense. i will do some more testing on this.