setVotes null check added.