We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68c7649 commit 60def8dCopy full SHA for 60def8d
exist-core/src/main/java/org/exist/dom/persistent/Match.java
@@ -421,9 +421,8 @@ public boolean equals(final Object other) {
421
422
if (other instanceof Match) {
423
final Match om = (Match) other;
424
- return om.matchTerm != null
425
- && om.matchTerm.equals(matchTerm)
426
- && om.nodeId.equals(nodeId);
+ return om.nodeId.equals(nodeId)
+ && ((om.matchTerm != null && om.matchTerm.equals(matchTerm)) || matchTerm == null);
427
} else {
428
return false;
429
}
0 commit comments