mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-09-21 21:25:38 +00:00
bug5876: support TrackedRace.getCourseAreaId() based on race logs attached
This commit is contained in:
+1
@@ -102,6 +102,7 @@ public interface SharedDomainFactory<RLR extends RaceLogResolver> extends Compet
|
||||
|
||||
/**
|
||||
* Gets the {@link CourseArea} with passed id; if there is no such {@link CourseArea} <code>null</code> will be returned.
|
||||
* This also applies when {@code null} is being passed as the {@code courseAreaId}.
|
||||
*/
|
||||
CourseArea getExistingCourseAreaById(Serializable courseAreaId);
|
||||
|
||||
|
||||
+1
-1
@@ -380,7 +380,7 @@ public class SharedDomainFactoryImpl<RLR extends RaceLogResolver> implements Sha
|
||||
|
||||
@Override
|
||||
public CourseArea getExistingCourseAreaById(Serializable courseAreaId) {
|
||||
return courseAreaCache.get(courseAreaId);
|
||||
return courseAreaId == null ? null : courseAreaCache.get(courseAreaId);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user