diff --git a/OsmAnd/src/net/osmand/plus/resources/RegionAddressRepositoryBinary.java b/OsmAnd/src/net/osmand/plus/resources/RegionAddressRepositoryBinary.java index ac24a06230..4a03fd5c0b 100644 --- a/OsmAnd/src/net/osmand/plus/resources/RegionAddressRepositoryBinary.java +++ b/OsmAnd/src/net/osmand/plus/resources/RegionAddressRepositoryBinary.java @@ -129,9 +129,11 @@ public class RegionAddressRepositoryBinary implements RegionAddressRepository { @Override public synchronized void preloadStreets(City o, ResultMatcher resultMatcher) { - Collection streets = o.getStreets(); - if(!streets.isEmpty()){ - return; + if (o!=null) { + Collection streets = o.getStreets(); + if(!streets.isEmpty()){ + return; + } } try { file.preloadStreets(o, BinaryMapIndexReader.buildAddressRequest(resultMatcher));