diff --git a/app/src/main/java/ch/nuth/zhaw/exbox/MyCompetitor.java b/app/src/main/java/ch/nuth/zhaw/exbox/MyCompetitor.java index 59b954f..1997b59 100644 --- a/app/src/main/java/ch/nuth/zhaw/exbox/MyCompetitor.java +++ b/app/src/main/java/ch/nuth/zhaw/exbox/MyCompetitor.java @@ -63,7 +63,7 @@ public class MyCompetitor implements Comparable { @Override public int hashCode() { int hashCode = 13; - hashCode += name.hashCode(); + hashCode += getName().hashCode(); hashCode *= 17; return hashCode + rank; }