The wrong kind of exception (NullPointerException) was thrown in a UNION query with an incorrect ORDER BY expression.