fixing bug 3817 by adding another null check

Change-Id: I63e93c468b0a61cdc17ca26f2a6119abd2053412
This commit is contained in:
Axel Uhl committed 2016-07-24 12:27:29 +02:00
1 parent e062301155
commit 4c407d6e32
1 file changed
+1 -1
@@ -151,7 +151,7 @@ public class ManeuverCountRaceColumn extends ExpandableSortableColumn<String> im
for (LegEntryDTO legDetail : fieldsForRace.legDetails) {
if (legDetail != null) {
for (ManeuverType maneuverType : new ManeuverType[] { ManeuverType.TACK, ManeuverType.JIBE, ManeuverType.PENALTY_CIRCLE }) {
if (legDetail.numberOfManeuvers.get(maneuverType) != null) {
if (legDetail.numberOfManeuvers != null && legDetail.numberOfManeuvers.get(maneuverType) != null) {
totalNumberOfManeuvers.put(maneuverType,
totalNumberOfManeuvers.get(maneuverType) + (double) legDetail.numberOfManeuvers.get(maneuverType));
}