Update poi types

This commit is contained in:
Victor Shcherb 2016-06-29 21:19:47 +02:00
parent da6121e8d4
commit e72c540bc9

View file

@ -58,7 +58,11 @@ public class PoiTypesHelper {
}
break;
case TYPE:
return app.getPoiTypes().getPoiTypeByKey(poiTypeObject.getKeyName());
AbstractPoiType p = app.getPoiTypes().getPoiTypeByKey(poiTypeObject.getKeyName());
if(p == null) {
return app.getPoiTypes().getAnyPoiAdditionalTypeByKey(poiTypeObject.getKeyName());
}
return p;
}
return null;
}