mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-05 11:53:53 +00:00
fixed NPE in finding official results for race columns for which no results exist yet
This commit is contained in:
1 parent
deff935b42
commit
045be2e12a
1 file changed
+2
-2
+2
-2
@@ -232,7 +232,7 @@ public class MatchAndApplyScoreCorrectionsDialog extends DataEntryDialog<BulkSco
|
||||
// apply the score correction of the cell:
|
||||
String raceNameOrNumber = getSelectedString(raceNameOrNumberChoosers, raceColumn);
|
||||
String officialSailID = getSelectedString(officialSailIDChoosers, competitor);
|
||||
if (officialSailID != null) {
|
||||
if (officialSailID != null && raceNameOrNumber != null) {
|
||||
ScoreCorrectionEntryDTO officialCorrectionEntry = regattaScoreCorrection
|
||||
.getScoreCorrectionsByRaceNameOrNumber().get(raceNameOrNumber).get(officialSailID);
|
||||
result.addMaxPointsReasonUpdate(competitor, raceColumn,
|
||||
@@ -287,7 +287,7 @@ public class MatchAndApplyScoreCorrectionsDialog extends DataEntryDialog<BulkSco
|
||||
VerticalPanel cell = new VerticalPanel();
|
||||
cell.add(new Label(entry.netPoints+"/"+entry.totalPoints+"/"+entry.reasonForMaxPoints+
|
||||
(entry.discarded?"/discarded":"")));
|
||||
if (officialSailID != null) {
|
||||
if (officialSailID != null && raceNameOrNumber != null) {
|
||||
ScoreCorrectionEntryDTO officialCorrectionEntry =
|
||||
regattaScoreCorrection.getScoreCorrectionsByRaceNameOrNumber()
|
||||
.get(raceNameOrNumber).get(officialSailID);
|
||||
|
||||
Reference in new issue
Block a user