mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-08 21:30:57 +00:00
# fix NPE when there are no RaceColumns attached to a Series
This commit is contained in:
1 parent
340abeed82
commit
ffaf174711
1 file changed
+5
-3
+5
-3
@@ -83,9 +83,11 @@ public class RaceGroupFactory {
|
||||
|
||||
private Collection<RaceCell> getCells(String fleetName, List<RaceColumn> raceColumns) {
|
||||
Collection<RaceCell> cells = new ArrayList<>();
|
||||
for (RaceColumn raceColumn : raceColumns) {
|
||||
Fleet fleet = raceColumn.getFleetByName(fleetName);
|
||||
cells.add(new RaceCellImpl(raceColumn.getName(), raceColumn.getRaceLog(fleet)));
|
||||
if (raceColumns != null) {
|
||||
for (RaceColumn raceColumn : raceColumns) {
|
||||
Fleet fleet = raceColumn.getFleetByName(fleetName);
|
||||
cells.add(new RaceCellImpl(raceColumn.getName(), raceColumn.getRaceLog(fleet)));
|
||||
}
|
||||
}
|
||||
return cells;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user