From eb8c87646069aa9123eb214953ae87dd9ca09805 Mon Sep 17 00:00:00 2001 From: Ansis Brammanis Date: Thu, 7 Mar 2013 10:46:25 -0500 Subject: [PATCH] Fix node parsing Old nodes may be missing user and uid for example, node 60743409 --- js/id/connection.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/id/connection.js b/js/id/connection.js index c540f244b..2f8b3abb2 100644 --- a/js/id/connection.js +++ b/js/id/connection.js @@ -80,8 +80,8 @@ iD.Connection = function(context) { loc: [parseFloat(attrs.lon.nodeValue), parseFloat(attrs.lat.nodeValue)], version: attrs.version.nodeValue, changeset: attrs.changeset.nodeValue, - user: attrs.user.nodeValue, - uid: attrs.uid.nodeValue, + user: attrs.user && attrs.user.nodeValue, + uid: attrs.uid && attrs.uid.nodeValue, visible: attrs.visible.nodeValue, timestamp: attrs.timestamp.nodeValue, tags: getTags(obj)