mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-15 16:51:07 +00:00
fixed NPE check in convertToRegattaDTO
This commit is contained in:
1 parent
ff44bd90f3
commit
175b8c6d40
1 file changed
+1
-1
+1
-1
@@ -768,7 +768,7 @@ public class SailingServiceImpl extends ProxiedRemoteServiceServlet implements S
|
||||
regattaDTO.races = convertToRaceDTOs(regatta);
|
||||
regattaDTO.series = convertToSeriesDTOs(regatta);
|
||||
regattaDTO.startDate = regatta.getStartDate() != null ? regatta.getStartDate().asDate() : null;
|
||||
regattaDTO.endDate = regatta.getStartDate() != null ? regatta.getEndDate().asDate() : null;
|
||||
regattaDTO.endDate = regatta.getEndDate() != null ? regatta.getEndDate().asDate() : null;
|
||||
BoatClass boatClass = regatta.getBoatClass();
|
||||
if (boatClass != null) {
|
||||
regattaDTO.boatClass = new BoatClassDTO(boatClass.getName(), boatClass.getDisplayName(), boatClass.getHullLength().getMeters());
|
||||
|
||||
Reference in new issue
Block a user