diff --git a/js/id/connection.js b/js/id/connection.js index 8b3328b78..e96674e1b 100644 --- a/js/id/connection.js +++ b/js/id/connection.js @@ -81,8 +81,8 @@ iD.Connection = function(context) { id: iD.Entity.id.fromOSM(wayStr, attrs.id.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), @@ -96,8 +96,8 @@ iD.Connection = function(context) { id: iD.Entity.id.fromOSM(relationStr, attrs.id.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),