mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-25 21:43:49 +00:00
Waypoints created in SharedDomainFactory with null as PassingInstructions are created with PassingInstructions.None.
This commit is contained in:
1 parent
3b2aaf0e8e
commit
170ef21b67
1 file changed
+1
-1
+1
-1
@@ -182,7 +182,7 @@ public class SharedDomainFactoryImpl implements SharedDomainFactory {
|
||||
public Waypoint createWaypoint(ControlPoint controlPoint, PassingInstruction passingInstruction) {
|
||||
synchronized (waypointCache) {
|
||||
expungeStaleWaypointCacheEntries();
|
||||
Waypoint result = new WaypointImpl(controlPoint, passingInstruction);
|
||||
Waypoint result = passingInstruction==null?new WaypointImpl(controlPoint):new WaypointImpl(controlPoint, passingInstruction);
|
||||
waypointCache.put(result.getId(), new WeakWaypointReference(result));
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user