From 4565612ee6c458f1ee530944ea8c25899fef2ae5 Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Sat, 25 Oct 2014 14:15:10 +0200 Subject: [PATCH] Fix issues with app crash --- OsmAnd-java/src/net/osmand/router/GeneralRouter.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/OsmAnd-java/src/net/osmand/router/GeneralRouter.java b/OsmAnd-java/src/net/osmand/router/GeneralRouter.java index 709c620f86..f54dba0f3c 100644 --- a/OsmAnd-java/src/net/osmand/router/GeneralRouter.java +++ b/OsmAnd-java/src/net/osmand/router/GeneralRouter.java @@ -191,6 +191,9 @@ public class GeneralRouter implements VehicleRouter { } public long[] getImpassableRoadIds() { + if(impassableRoads == null) { + return new long[0]; + } return impassableRoads.toArray(); }