mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-08 16:08:49 +00:00
error on unknown message
git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@862 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
parent
2b9900d216
commit
a6ca6f27f0
1 changed files with 3 additions and 1 deletions
|
@ -1716,8 +1716,10 @@ public abstract class AbstractEfaProvider extends AbstractNetworkProvider
|
|||
if (XmlPullUtil.test(pp, "itdMessage"))
|
||||
{
|
||||
final String message = pp.nextText();
|
||||
if (message.equals("invalid date"))
|
||||
if ("invalid date".equals(message))
|
||||
return new QueryConnectionsResult(header, QueryConnectionsResult.Status.INVALID_DATE);
|
||||
else
|
||||
throw new IllegalStateException("unknown message: " + message);
|
||||
}
|
||||
XmlPullUtil.exit(pp, "itdDate");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue