Handle null pointer on cql error