mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-17 12:39:49 +00:00
parse empty AttributeVariants
git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@703 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
parent
cbd26e8c2c
commit
330f1d5dca
1 changed files with 5 additions and 2 deletions
|
@ -1006,8 +1006,11 @@ public abstract class AbstractHafasProvider implements NetworkProvider
|
||||||
{
|
{
|
||||||
final String type = XmlPullUtil.attr(pp, "type");
|
final String type = XmlPullUtil.attr(pp, "type");
|
||||||
XmlPullUtil.enter(pp);
|
XmlPullUtil.enter(pp);
|
||||||
XmlPullUtil.require(pp, "Text");
|
final String value;
|
||||||
final String value = XmlPullUtil.text(pp).trim();
|
if (XmlPullUtil.test(pp, "Text"))
|
||||||
|
value = XmlPullUtil.text(pp).trim();
|
||||||
|
else
|
||||||
|
value = null;
|
||||||
XmlPullUtil.exit(pp);
|
XmlPullUtil.exit(pp);
|
||||||
|
|
||||||
attributeVariants.put(type, value);
|
attributeVariants.put(type, value);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue