mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-09-22 21:55:39 +00:00
fixed NPE in case sail number is null
This commit is contained in:
+1
-1
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user