From 42ff0f359ab3df39fb24edbf019c1a40a8b715de Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Tue, 12 Mar 2013 17:47:50 -0700 Subject: [PATCH] user/uid can be undefined for all types --- js/id/connection.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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),