mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-10 14:20:55 +00:00
avoid a NPE during comparison
This commit is contained in:
1 parent
592bf02292
commit
5d04b737cb
1 file changed
+1
-1
+1
-1
@@ -355,7 +355,7 @@ public class CrossTrackErrorCache extends AbstractRaceChangeListener {
|
||||
for (Map.Entry<Waypoint, MarkPassing> e : oldMarkPassings.entrySet()) {
|
||||
if (!foundOldWaypoints.contains(e.getKey())) {
|
||||
TimePoint timePointOfRemovedMarkPassing = e.getValue().getTimePoint();
|
||||
if (timePointOfRemovedMarkPassing.compareTo(from) < 0) {
|
||||
if (from == null || timePointOfRemovedMarkPassing.compareTo(from) < 0) {
|
||||
from = timePointOfRemovedMarkPassing;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user