mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-18 08:19:51 +00:00
fixed NPE if no product filter set
git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@629 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
parent
de1c876c9b
commit
242c222c40
1 changed files with 51 additions and 48 deletions
|
@ -154,6 +154,8 @@ public final class BahnProvider extends AbstractHafasProvider
|
|||
uri.append("&existProductNahverkehr=yes");
|
||||
uri.append("&start=Suchen");
|
||||
|
||||
if (products != null)
|
||||
{
|
||||
for (final char p : products.toCharArray())
|
||||
{
|
||||
if (p == 'I')
|
||||
|
@ -206,6 +208,7 @@ public final class BahnProvider extends AbstractHafasProvider
|
|||
}
|
||||
// FIXME if (p == 'C')
|
||||
}
|
||||
}
|
||||
|
||||
return uri.toString();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue