Update DataExtractionOSM/src/net/osmand/data/Multipolygon.java

Fix null pointer
This commit is contained in:
vshcherb 2012-08-22 13:17:00 +03:00
parent 0ea333691e
commit 437504e30a

View file

@ -178,6 +178,9 @@ public class Multipolygon {
}
private Collection<Way> findInnersFor(Way outer, List<Way> inners) {
if(inners == null) {
return Collections.emptyList();
}
List<Way> result = new ArrayList<Way>(inners.size());
for (Way in : inners) {
boolean inIsIn = true;