mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-14 08:40:29 +00:00
Fix NPE when parsing messages (EFA).
This commit is contained in:
parent
11a8d9f8fe
commit
4c17bf10eb
1 changed files with 8 additions and 5 deletions
|
@ -2563,11 +2563,14 @@ public abstract class AbstractEfaProvider extends AbstractNetworkProvider
|
|||
while (XmlPullUtil.test(pp, "infoTextListElem"))
|
||||
{
|
||||
final String text = XmlPullUtil.valueTag(pp, "infoTextListElem");
|
||||
final String lcText = text.toLowerCase();
|
||||
if ("niederflurwagen soweit verfügbar".equals(lcText)) // KVV
|
||||
lowFloorVehicle = true;
|
||||
else if (lcText.contains("ruf") || lcText.contains("anmeld")) // Bedarfsverkehr
|
||||
message = text;
|
||||
if (text != null)
|
||||
{
|
||||
final String lcText = text.toLowerCase();
|
||||
if ("niederflurwagen soweit verfügbar".equals(lcText)) // KVV
|
||||
lowFloorVehicle = true;
|
||||
else if (lcText.contains("ruf") || lcText.contains("anmeld")) // Bedarfsverkehr
|
||||
message = text;
|
||||
}
|
||||
}
|
||||
XmlPullUtil.exit(pp, "itdInfoTextList");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue