mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
Fix for Issue 62 - Query.setId should not return all results for null input Object
This commit is contained in:
@@ -244,6 +244,9 @@ public class DefaultExpressionFactory implements SpiExpressionFactory {
|
||||
* Id Equal to - ID property is equal to the value.
|
||||
*/
|
||||
public Expression idEq(Object value) {
|
||||
if (value == null) {
|
||||
throw new NullPointerException("The id value is null");
|
||||
}
|
||||
return new IdExpression(value);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user