Ensured that setting a null id on Query throws an NPE

This commit is contained in:
James Roper
2012-12-03 14:22:41 +11:00
parent e0d9cc3662
commit c2d3cc00ea
@@ -1140,6 +1140,9 @@ public class DefaultOrmQuery<T> implements SpiQuery<T> {
}
public DefaultOrmQuery<T> setId(Object id) {
if (id == null) {
throw new NullPointerException("The id is null");
}
this.id = id;
return this;
}