fix NPE in RegionAddressRepositoryBinary
This commit is contained in:
parent
b77d9109e7
commit
3cda17468b
1 changed files with 5 additions and 3 deletions
|
@ -129,9 +129,11 @@ public class RegionAddressRepositoryBinary implements RegionAddressRepository {
|
|||
|
||||
@Override
|
||||
public synchronized void preloadStreets(City o, ResultMatcher<Street> resultMatcher) {
|
||||
Collection<Street> streets = o.getStreets();
|
||||
if(!streets.isEmpty()){
|
||||
return;
|
||||
if (o!=null) {
|
||||
Collection<Street> streets = o.getStreets();
|
||||
if(!streets.isEmpty()){
|
||||
return;
|
||||
}
|
||||
}
|
||||
try {
|
||||
file.preloadStreets(o, BinaryMapIndexReader.buildAddressRequest(resultMatcher));
|
||||
|
|
Loading…
Reference in a new issue