mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-07 16:48: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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ownStation.get() != null && !stations.contains(ownStation))
|
if (ownStation.get() != null && !stations.contains(ownStation.get()))
|
||||||
stations.add(ownStation.get());
|
stations.add(ownStation.get());
|
||||||
|
|
||||||
if (maxLocations == 0 || maxLocations >= stations.size())
|
if (maxLocations == 0 || maxLocations >= stations.size())
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue