EntityLoadByExample with unique argument fails with Can't cast Null value to value of type [Component]

Description

Have a simple persistent property Thing.cfc with a PK and a couple fields, e.g.

Then:

If there are no duplicates, ACF will return null (just as it would with EntityLoadByPK if the PK specified didn't exist).

Lucee 5.1:

If you don't use the 'unique' argument, it will correctly return an empty array, so that is the workaround for the time being.

Environment

Windows 10 x64 JRE 1.8.0u92

Assignee

Michael Offner

Reporter

Samuel W. Knowlton

Priority

Critical

Labels

None

Fix versions

Sprint

None

Affects versions

Configure