fixed NPE in case sail number is null

This commit is contained in:
Axel Uhl
2024-03-06 15:32:03 +01:00
parent 9acbdc9683
commit a8e8ee5b30
@@ -8,6 +8,6 @@ package com.sap.sailing.domain.base;
public interface CompetitorWithBoat extends Competitor, WithBoat {
@Override
default String getStableLastResortOrderingCriterion() {
return getBoat().getSailID();
return getBoat().getSailID() == null ? getName() : getBoat().getSailID();
}
}