Fix incorrect equality check

This commit is contained in:
Manfred Karrer 2019-04-07 20:49:53 -05:00
parent 6e9edc7b53
commit ef3081e89c
No known key found for this signature in database
GPG key ID: 401250966A6B2C46

View file

@ -387,7 +387,7 @@ public class VoteResultService implements DaoStateListener, DaoSetupService {
if (!entry.getValue().isPresent()) {
log.warn("We found a local vote but don't have that vote in the data from the " +
"blind vote. ballot={}", ballot);
} else if (ballot.getVote() != entry.getValue().get()) {
} else if (!ballot.getVote().equals(entry.getValue().get())) {
log.warn("We found a local vote but the vote from the " +
"blind vote does not match. ballot={}, vote from blindVote data={}",
ballot, entry.getValue().get());