quick icon indicating copy to clipboard operation
quick copied to clipboard

empty belongsTo relation failing with full-null support in Lucee

Open wpdebruin opened this issue 3 years ago • 1 comments

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.

wpdebruin avatar Sep 06 '21 07:09 wpdebruin