fix NPE: grow PathLayer point array

This commit is contained in:
Hannes Janetzek 2014-01-17 03:22:46 +01:00
parent cf9bbec9a5
commit 4789ecb8d7

View File

@ -99,7 +99,7 @@ public class PathLayer extends Layer {
ArrayList<GeoPoint> geopoints = mPoints;
double[] points = mPreprojected;
if (size * 2 > points.length) {
if (size * 2 >= points.length) {
points = mPreprojected = new double[size * 2];
mPPoints = new float[size * 2];
}