Join GitHub today
NPE in AbstractSQLQuery when no connection provided #22
If I create an SQLQuery without a connection like this
SQLQuery query = new SQLQueryImpl(new PostgresTemplates());
and later forget to clone with a connection I get and NPE when calling uniqueResults. Could you add a null check and throw a more informative exception alerting the user to the problem.
The exception I see is: