Hotfix issue

This commit is contained in:
Victor Shcherb 2014-07-16 20:45:44 +02:00
parent 5424d9703a
commit 0b4d9e0ad1

View file

@ -86,8 +86,8 @@ public class BinaryMapAddressReaderAdapter {
int tag = WireFormat.getTagFieldNumber(t); int tag = WireFormat.getTagFieldNumber(t);
switch (tag) { switch (tag) {
case 0: case 0:
if(region.enName == null || region.enName.length() == 0){ if (region.enName == null || region.enName.length() == 0) {
region.enName = Junidecode.unidecode(region.name); region.enName = region.name == null ? "" : Junidecode.unidecode(region.name);
} }
return; return;
case OsmandOdb.OsmAndAddressIndex.NAME_FIELD_NUMBER : case OsmandOdb.OsmAndAddressIndex.NAME_FIELD_NUMBER :