Skip to content

Commit 51ffdca

Browse files
committed
Defensive coding for null projection list in boxlang prime
1 parent a445f50 commit 51ffdca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

models/criterion/BaseBuilder.cfc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ component accessors="true" {
404404

405405
// iterate and add dynamically if the incoming argument exists, man, so much easier if we had closures.
406406
for ( var pType in arguments ) {
407-
if ( structKeyExists( arguments, pType ) AND NOT listFindNoCase( excludes, pType ) ) {
407+
if ( structKeyExists( arguments, pType ) && NOT listFindNoCase( excludes, pType ) && !isNull( projectionList ) ) {
408408
addProjection(
409409
arguments[ pType ],
410410
lCase( pType ),

0 commit comments

Comments
 (0)