mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-19 16:59:51 +00:00
Fix NPE when parsing platform (Hafas).
This commit is contained in:
parent
c0c033cfcd
commit
f1d0f26de0
1 changed files with 1 additions and 1 deletions
|
@ -306,7 +306,7 @@ public abstract class AbstractHafasProvider extends AbstractNetworkProvider
|
|||
final String platformText = XmlPullUtil.valueTag(pp, "Text");
|
||||
XmlPullUtil.exit(pp, "Platform");
|
||||
|
||||
if (platformText.length() == 0)
|
||||
if (platformText == null || platformText.length() == 0)
|
||||
return null;
|
||||
else
|
||||
return new Position(platformText);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue