bug5932: fixed NPE

This commit is contained in:
Axel Uhl
2023-12-27 16:14:44 +01:00
parent 9911530258
commit 3b374b06c5
2 changed files with 16 additions and 14 deletions
@@ -82,7 +82,7 @@ public class TackTypeSegmentRetrievalProcessor extends AbstractRetrievalProcesso
}
try {
// no null case like line 87, because for loop checks that mark passing at leg start is not finish mark passing
nextTackType = trackedLegOfCompetitor.getTackType(gpsFix.getTimePoint());
nextTackType = trackedLegOfCompetitor == null ? null : trackedLegOfCompetitor.getTackType(gpsFix.getTimePoint());
} catch (NoWindException e) {
nextTackType = null;
}