From 3a69405dc7e4fcddfaddf0f2d5199f21dcc09b1c 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 :