From 7c48e7052fb1ad8bbdd2669fb5b8e7728cf7c52a Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Wed, 27 Aug 2014 23:44:49 +0200 Subject: [PATCH] Map rendering types --- OsmAnd-java/src/net/osmand/osm/MapRenderingTypes.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OsmAnd-java/src/net/osmand/osm/MapRenderingTypes.java b/OsmAnd-java/src/net/osmand/osm/MapRenderingTypes.java index 07c07ef240..22c11a9b2a 100644 --- a/OsmAnd-java/src/net/osmand/osm/MapRenderingTypes.java +++ b/OsmAnd-java/src/net/osmand/osm/MapRenderingTypes.java @@ -473,7 +473,7 @@ public class MapRenderingTypes { } - if (poiParentCategory != null) { + if (poiParentCategory != null && poiParentCategory.length() > 0) { rtype.poiCategory = AmenityType.getAndRegisterType(poiParentCategory); rtype.poiSpecified = true; } @@ -482,7 +482,7 @@ public class MapRenderingTypes { } String poiCategory = parser.getAttributeValue("", "poi_category"); - if (poiCategory != null) { + if (poiCategory != null && poiCategory.length() > 0) { rtype.poiSpecified = true; if (poiCategory.length() == 0) { rtype.poiCategory = null;