mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-08 13:20:57 +00:00
fixing bug 3817 by adding another null check
Change-Id: I63e93c468b0a61cdc17ca26f2a6119abd2053412
This commit is contained in:
1 parent
e062301155
commit
4c407d6e32
1 file changed
+1
-1
+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));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user