mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-18 16:29:51 +00:00
workaround for broken firstConDiffersFromReqDate="true" as text node
git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@679 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
parent
79d973321d
commit
709b233786
1 changed files with 4 additions and 0 deletions
|
@ -669,6 +669,10 @@ public abstract class AbstractHafasProvider implements NetworkProvider
|
||||||
throw new IllegalStateException("error " + code + " " + XmlPullUtil.attr(pp, "text"));
|
throw new IllegalStateException("error " + code + " " + XmlPullUtil.attr(pp, "text"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// workaround for broken firstConDiffersFromReqDate="true" as text node
|
||||||
|
if (pp.getEventType() == XmlPullParser.TEXT)
|
||||||
|
pp.nextTag();
|
||||||
|
|
||||||
final String context;
|
final String context;
|
||||||
if (XmlPullUtil.test(pp, "ConResCtxt"))
|
if (XmlPullUtil.test(pp, "ConResCtxt"))
|
||||||
context = XmlPullUtil.text(pp);
|
context = XmlPullUtil.text(pp);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue