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:
Mark Struberg 2016-11-05 11:25:29 +00:00
parent 3d905e17a7
commit 701a4e7d27
1 changed files with 4 additions and 0 deletions

View File

@ -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;