Fix crash

This commit is contained in:
Victor Shcherb 2015-04-08 18:54:11 +02:00
parent c2d6987b81
commit b2c1046860

View file

@ -61,7 +61,9 @@ public class OpenstreetmapLocalUtil implements OpenstreetmapUtil {
n.getLocation().getLongitude(),
nodeId);
entity.putTag(st.getOsmTag(), st.getOsmValue());
entity.putTag(st.getOsmTag2(), st.getOsmValue2());
if(st.getOsmTag2() != null) {
entity.putTag(st.getOsmTag2(), st.getOsmValue2());
}
entity.putTag(OSMTagKey.NAME.getValue(), n.getName());
entity.putTag(OSMTagKey.OPENING_HOURS.getValue(), n.getOpeningHours());