mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-09-21 21:25:38 +00:00
bug5932: fixed NPE
This commit is contained in:
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user