Following query caused NULL pointer exception. Also this query worked fine on ObjectDb 2.6.4b6.
SELECT $1 FROM Pa3DataKey $1 WHERE (LOWER($1.publicDataItems.get('Sender')) == 'test' AND LOWER($1.publicDataItems.get('RAT')) == 'lte' ) AND (($1.parentId IN (0)) AND ($1.keyDescriptor.name="MESSAGE" OR $1.keyDescriptor.name="CONTEXT")) ORDER BY $1.timestamp
1. Priority HIGH since affected customers.
2. Attached screenshot + database exampe