fixed construction of device mapping for competitors without boat

Change-Id: I77c3a5a99514096de86fe558ac7c83e82cd23f06
This commit is contained in:
Axel Uhl
2018-09-21 09:30:37 +02:00
parent 5f404c2d5a
commit a0ff987c43
@@ -6237,9 +6237,9 @@ public class SailingServiceImpl extends ProxiedRemoteServiceServlet implements S
Mark mark = convertToMark(((MarkDTO) dto.mappedTo), true);
event = new RegattaLogDeviceMarkMappingEventImpl(now, now, getService().getServerAuthor(), UUID.randomUUID(),
mark, mapping.getDevice(), from, to);
} else if (dto.mappedTo instanceof CompetitorWithBoatDTO) {
} else if (dto.mappedTo instanceof CompetitorDTO) {
Competitor competitor = getService().getCompetitorAndBoatStore().getExistingCompetitorByIdAsString(
((CompetitorWithBoatDTO) dto.mappedTo).getIdAsString());
((CompetitorDTO) dto.mappedTo).getIdAsString());
if (mapping.getDevice().getIdentifierType().equals(ExpeditionSensorDeviceIdentifier.TYPE)) {
event = new RegattaLogDeviceCompetitorExpeditionExtendedMappingEventImpl(
now, now, getService().getServerAuthor(), UUID.randomUUID(),