Skip to content

Commit b2cbb7c

Browse files
committed
fix: tag null thread values before assignment
1 parent 8d47106 commit b2cbb7c

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

‎models/QuickBuilder.cfc‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -712,8 +712,13 @@ component accessors="true" transientCache="false" {
712712
var relationshipValues = [];
713713
for ( var entity in loadedEntities ) {
714714
if ( structKeyExists( entity, "isQuickEntity" ) ) {
715-
var relationshipValue = entity.retrieveRelationship( attributes.relationName );
716-
relationshipValues.append( serializeParallelValue( relationshipValue ) );
715+
if ( isNull( entity.retrieveRelationship( attributes.relationName ) ) ) {
716+
relationshipValues.append( { "type" : "null" } );
717+
} else {
718+
relationshipValues.append(
719+
serializeParallelValue( entity.retrieveRelationship( attributes.relationName ) )
720+
);
721+
}
717722
} else {
718723
relationshipValues.append(
719724
serializeParallelValue(

0 commit comments

Comments
 (0)