mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-16 09:29:49 +00:00
if nothing is known about a location, return null
git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@520 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
parent
5f30e615ef
commit
0181280cc1
1 changed files with 3 additions and 1 deletions
|
@ -334,8 +334,10 @@ public final class BvgProvider extends AbstractHafasProvider
|
|||
return originalLocation;
|
||||
else if (originalLocation != null && originalLocation.type == LocationType.ADDRESS && str.length() == 0)
|
||||
return originalLocation;
|
||||
else
|
||||
else if (str.length() > 0)
|
||||
return new Location(LocationType.ANY, 0, null, str);
|
||||
else
|
||||
return null;
|
||||
}
|
||||
|
||||
private static final Pattern P_CONNECTIONS_HEAD = Pattern.compile(".*?" //
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue