mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-09-24 14:38:45 +00:00
added more null-safety for ORC PCS calculations
This commit is contained in:
+3
-1
@@ -50,7 +50,9 @@ public class ORCPerformanceCurveCourseImpl implements ORCPerformanceCurveCourse
|
||||
}
|
||||
resultLegs.add(potentiallyReplacedLeg);
|
||||
}
|
||||
resultLegs.add(lastFinishedLeg.scale(shareOfCurrentLeg));
|
||||
if (shareOfCurrentLeg > 0) {
|
||||
resultLegs.add(lastFinishedLeg.scale(shareOfCurrentLeg));
|
||||
}
|
||||
return new ORCPerformanceCurveCourseImpl(resultLegs);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user