mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-02 16:22:27 +00:00
Ensured that setting a null id on Query throws an NPE
This commit is contained in:
1 parent
e0d9cc3662
commit
c2d3cc00ea
1 file changed
+3
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user