quick
quick copied to clipboard
empty belongsTo relation failing with full-null support in Lucee
When we have an empty belongsTo relation in a quick entity it fails with full null support. The belongsTo relation is calling the isBuilder function in qb. The isBuilder function in QueryUtils of qb is receiving:
- an empty string with partial null support
- a null value with full null support So this is part of the code
!isArray( arguments.value ) &&
structKeyExists( arguments.value, "isBuilder" );
which will never work with null values because it will fail on the structKeyExists. I tried adding a !IsNull( arguments.value ) check but still failing, in other places I guess.