Skip to content

empty belongsTo relation failing with full-null support in Lucee #154

Description

@wpdebruin

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions