Jira issue originally created by user pauci:
This happens because expression created by ExpressionBuilder::isNull() is wrongly translated to SQL using '=' operator instead of 'IS NULL'.
If the collection is already loaded, result is as expected.
Comment created by mnapoli:
Pull request: #508
Issue was closed with resolution "Fixed"