mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-13 08:10:46 +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");
|
||||
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;
|
||||
XmlPullUtil.exit(pp, "itdNoTrain");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue