fix NPE
git-svn-id: https://osmand.googlecode.com/svn/trunk@739 e29c36b1-1cfa-d876-8d93-3434fc2bb7b8
This commit is contained in:
parent
24db7d1f9d
commit
758920c812
1 changed files with 8 additions and 5 deletions
|
@ -934,11 +934,14 @@ public class IndexCreator {
|
|||
// special check that address do not contain twice in a3 - border and separate a6
|
||||
if (!a6.getMemberIds().contains(id)) {
|
||||
Building building = new Building(border);
|
||||
building.setName(hno);
|
||||
DataIndexWriter.writeBuilding(addressBuildingStat, pStatements,
|
||||
streetId, building, BATCH_SIZE);
|
||||
if (loadInMemory) {
|
||||
addressBuildingLocalSet.add(id.getId());
|
||||
if (building.getLocation() != null) {
|
||||
building.setName(hno);
|
||||
DataIndexWriter.writeBuilding(addressBuildingStat, pStatements, streetId, building, BATCH_SIZE);
|
||||
if (loadInMemory) {
|
||||
addressBuildingLocalSet.add(id.getId());
|
||||
}
|
||||
} else {
|
||||
log.error("Strange border " + id + " location couldn't be found");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue