mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-11-09 12:31:00 +00:00
fix for regatta.getAllBoats() for case where no raceDefinition can be found
This commit is contained in:
1 parent
13b2b41341
commit
4aebd93edf
1 file changed
+3
-1
@@ -467,7 +467,9 @@ public class RegattaImpl extends NamedImpl implements Regatta, RaceColumnListene
|
||||
hasRaceColumns = true;
|
||||
for (final Fleet fleet : rc.getFleets()) {
|
||||
RaceDefinition raceDefinition = rc.getRaceDefinition(fleet);
|
||||
Util.addAll(raceDefinition.getBoats(), result);
|
||||
if (raceDefinition != null) {
|
||||
Util.addAll(raceDefinition.getBoats(), result);
|
||||
}
|
||||
}
|
||||
}
|
||||
final RegattaLog regattaLog = getRegattaLog();
|
||||
|
||||
Reference in new issue
Block a user