mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-19 00:39:58 +00:00
Parse empty <sf>.
This commit is contained in:
parent
e8704f8b85
commit
58eb637454
1 changed files with 47 additions and 39 deletions
|
@ -514,6 +514,9 @@ public abstract class AbstractEfaProvider extends AbstractNetworkProvider
|
||||||
|
|
||||||
final List<LocationAndQuality> locations = new ArrayList<LocationAndQuality>();
|
final List<LocationAndQuality> locations = new ArrayList<LocationAndQuality>();
|
||||||
|
|
||||||
|
XmlPullUtil.require(pp, "sf");
|
||||||
|
if (!pp.isEmptyElementTag())
|
||||||
|
{
|
||||||
XmlPullUtil.enter(pp, "sf");
|
XmlPullUtil.enter(pp, "sf");
|
||||||
|
|
||||||
while (XmlPullUtil.test(pp, "p"))
|
while (XmlPullUtil.test(pp, "p"))
|
||||||
|
@ -562,6 +565,11 @@ public abstract class AbstractEfaProvider extends AbstractNetworkProvider
|
||||||
}
|
}
|
||||||
|
|
||||||
XmlPullUtil.exit(pp, "sf");
|
XmlPullUtil.exit(pp, "sf");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
XmlPullUtil.next(pp);
|
||||||
|
}
|
||||||
|
|
||||||
Collections.sort(locations);
|
Collections.sort(locations);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue