mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-17 01:31:01 +00:00
fixed possible NullPointerE in RaceLogEventComparator
This commit is contained in:
1 parent
d28b822aef
commit
3b3a71d34d
1 file changed
+1
-1
+1
-1
@@ -39,7 +39,7 @@ public enum RaceLogEventComparator implements Comparator<Timed>, Serializable {
|
||||
}
|
||||
|
||||
private boolean compareIds(RaceLogEvent e1, RaceLogEvent e2) {
|
||||
return e1.getId().equals(e2.getId());
|
||||
return e1.getId() != null && e1.getId().equals(e2.getId());
|
||||
}
|
||||
|
||||
private int comparePasses(RaceLogEvent e1, RaceLogEvent e2) {
|
||||
|
||||
Reference in new issue
Block a user