Fix crash

This commit is contained in:
Victor Shcherb 2014-08-28 01:23:49 +02:00
parent f8e6c4817a
commit 8627391c4f

View file

@ -568,7 +568,7 @@ public class MapRenderingTypes {
protected void parseCategoryFromXml(XmlPullParser parser, String poiParentCategory, String poiParentPrefix) {
String poi_tag = parser.getAttributeValue("","poi_tag");
if (poi_tag != null) {
if (poi_tag != null && poiParentCategory.length() > 0) {
MapRulType rtype = new MapRulType();
rtype.poiCategory = AmenityType.getAndRegisterType(poiParentCategory);
rtype.poiSpecified = true;