Don't commit empty values (case of no name)

This commit is contained in:
Fabien Carrion 2012-02-07 08:18:44 -06:00
parent c9c2d491ba
commit a4b4c8adbb

View file

@ -287,6 +287,7 @@ public class OpenstreetmapRemoteUtil implements OpenstreetmapUtil {
for(String k : n.getTagKeySet()){
String val = n.getTag(k);
if (val.length() == 0) continue;
ser.startTag(null, "tag"); //$NON-NLS-1$
ser.attribute(null, "k", k); //$NON-NLS-1$
ser.attribute(null, "v", val); //$NON-NLS-1$