mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-15 09:00:36 +00:00
fixed ArrayIndexOutOfBoundsException
git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@805 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
parent
6beeaa40eb
commit
05bdc80e14
1 changed files with 1 additions and 1 deletions
|
@ -1968,7 +1968,7 @@ public abstract class AbstractEfaProvider extends AbstractNetworkProvider
|
|||
throw new IllegalStateException("unknown type: " + type);
|
||||
|
||||
XmlPullUtil.enter(pp, "itdCoordinateString");
|
||||
for (final String coordStr : pp.getText().split(" "))
|
||||
for (final String coordStr : pp.getText().split(" +"))
|
||||
{
|
||||
final String[] coordsStr = coordStr.split(",");
|
||||
path.add(new Point(Math.round(Float.parseFloat(coordsStr[1])), Math.round(Float.parseFloat(coordsStr[0]))));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue