mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-14 08:40:29 +00:00
Fix exception in detection of on demand service
This commit is contained in:
parent
ed6625cbd5
commit
ada8297a88
1 changed files with 3 additions and 1 deletions
|
@ -1926,7 +1926,9 @@ public abstract class AbstractEfaProvider extends AbstractNetworkProvider
|
||||||
{
|
{
|
||||||
XmlPullUtil.enter(pp, "itdNoTrain");
|
XmlPullUtil.enter(pp, "itdNoTrain");
|
||||||
final String text = pp.getText();
|
final String text = pp.getText();
|
||||||
if (itdTrainName.toLowerCase().contains("ruf") && text.toLowerCase().contains("ruf"))
|
if (itdTrainName != null && itdTrainName.toLowerCase().contains("ruf"))
|
||||||
|
itdMessage = text;
|
||||||
|
else if (text != null && text.toLowerCase().contains("ruf"))
|
||||||
itdMessage = text;
|
itdMessage = text;
|
||||||
XmlPullUtil.exit(pp, "itdNoTrain");
|
XmlPullUtil.exit(pp, "itdNoTrain");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue