mirror of https://github.com/apache/openjpa.git
OPENJPA-2675 implement null-check for CriteriaQueryImpl#equals
txs to Kaloyan Spiridonov for the catch! git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1768191 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
3d905e17a7
commit
701a4e7d27
|
@ -736,6 +736,10 @@ class CriteriaQueryImpl<T> implements OpenJPACriteriaQuery<T>, AliasContext {
|
|||
}
|
||||
|
||||
public boolean equals(Object other) {
|
||||
if(other == null) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (toString().equals(other.toString()))
|
||||
return true;
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue