mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-11-15 06:49:56 +00:00
bug6041: aligned solution with what we had already for getAverageAbsoluteCrossTrackError
This commit is contained in:
1 parent
2cc3bbbc6e
commit
05ec1bd2b8
1 file changed
+5
-1
+5
-1
@@ -565,7 +565,11 @@ public class TrackedLegOfCompetitorImpl implements TrackedLegOfCompetitor {
|
||||
if (legStartMarkPassing != null) {
|
||||
TimePoint legStart = legStartMarkPassing.getTimePoint();
|
||||
final TimePoint to = getTimePointNotAfterFinishingOfLeg(timePoint);
|
||||
result = getTrackedRace().getAverageSignedCrossTrackError(competitor, legStart, to, /* upwindOnly */ false, waitForLatestAnalysis);
|
||||
if (to != null) {
|
||||
result = getTrackedRace().getAverageSignedCrossTrackError(competitor, legStart, to, /* upwindOnly */ false, waitForLatestAnalysis);
|
||||
} else {
|
||||
result = null;
|
||||
}
|
||||
} else {
|
||||
result = null;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user