bug5876: support TrackedRace.getCourseAreaId() based on race logs attached

This commit is contained in:
Axel Uhl
2023-07-26 23:21:22 +02:00
parent a9706389b1
commit 29150dccf9
9 changed files with 49 additions and 12 deletions
@@ -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);
@@ -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