mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-13 16:20:34 +00:00
some sanity checks
git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@272 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
parent
a3ad65eabe
commit
f3756be791
1 changed files with 6 additions and 3 deletions
|
@ -750,7 +750,8 @@ public abstract class AbstractEfaProvider implements NetworkProvider
|
|||
}
|
||||
else if ("identified".equals(originState))
|
||||
{
|
||||
XmlPullUtil.nextStartTagInsideTree(pp, null, "odvNameElem");
|
||||
if (!XmlPullUtil.nextStartTagInsideTree(pp, null, "odvNameElem"))
|
||||
throw new IllegalStateException("cannot find <odvNameElem />");
|
||||
from = processOdvNameElem(pp);
|
||||
}
|
||||
|
||||
|
@ -766,7 +767,8 @@ public abstract class AbstractEfaProvider implements NetworkProvider
|
|||
}
|
||||
else if ("identified".equals(destinationState))
|
||||
{
|
||||
XmlPullUtil.nextStartTagInsideTree(pp, null, "odvNameElem");
|
||||
if (!XmlPullUtil.nextStartTagInsideTree(pp, null, "odvNameElem"))
|
||||
throw new IllegalStateException("cannot find <odvNameElem />");
|
||||
to = processOdvNameElem(pp);
|
||||
}
|
||||
|
||||
|
@ -782,7 +784,8 @@ public abstract class AbstractEfaProvider implements NetworkProvider
|
|||
}
|
||||
else if ("identified".equals(viaState))
|
||||
{
|
||||
XmlPullUtil.nextStartTagInsideTree(pp, null, "odvNameElem");
|
||||
if (!XmlPullUtil.nextStartTagInsideTree(pp, null, "odvNameElem"))
|
||||
throw new IllegalStateException("cannot find <odvNameElem />");
|
||||
via = processOdvNameElem(pp);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue