From 0b4d9e0ad1064656501a637045a8cd383990811a Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Wed, 16 Jul 2014 20:45:44 +0200 Subject: [PATCH] Hotfix issue --- .../src/net/osmand/binary/BinaryMapAddressReaderAdapter.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OsmAnd-java/src/net/osmand/binary/BinaryMapAddressReaderAdapter.java b/OsmAnd-java/src/net/osmand/binary/BinaryMapAddressReaderAdapter.java index 0cb4222515..55f43815aa 100644 --- a/OsmAnd-java/src/net/osmand/binary/BinaryMapAddressReaderAdapter.java +++ b/OsmAnd-java/src/net/osmand/binary/BinaryMapAddressReaderAdapter.java @@ -86,8 +86,8 @@ public class BinaryMapAddressReaderAdapter { int tag = WireFormat.getTagFieldNumber(t); switch (tag) { case 0: - if(region.enName == null || region.enName.length() == 0){ - region.enName = Junidecode.unidecode(region.name); + if (region.enName == null || region.enName.length() == 0) { + region.enName = region.name == null ? "" : Junidecode.unidecode(region.name); } return; case OsmandOdb.OsmAndAddressIndex.NAME_FIELD_NUMBER :