mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-07 19:38:49 +00:00
AbstractEfaProvider: Fix AtomicReference/value-confusion bug when querying for nearby stations.
This commit is contained in:
parent
edb24dbac3
commit
af94ee8724
1 changed files with 1 additions and 1 deletions
|
@ -896,7 +896,7 @@ public abstract class AbstractEfaProvider extends AbstractNetworkProvider {
|
|||
return;
|
||||
}
|
||||
|
||||
if (ownStation.get() != null && !stations.contains(ownStation))
|
||||
if (ownStation.get() != null && !stations.contains(ownStation.get()))
|
||||
stations.add(ownStation.get());
|
||||
|
||||
if (maxLocations == 0 || maxLocations >= stations.size())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue