From fc272199c780ce1c8eff458dbf2010e9ca349acd Mon Sep 17 00:00:00 2001 From: Ansis Brammanis Date: Wed, 16 Jan 2013 11:34:50 -0500 Subject: [PATCH] Fix difference --- js/id/graph/graph.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/id/graph/graph.js b/js/id/graph/graph.js index 5e5792346..9b6de7219 100644 --- a/js/id/graph/graph.js +++ b/js/id/graph/graph.js @@ -134,7 +134,7 @@ iD.Graph.prototype = { entity = this.entities[id]; oldentity = graph.entities[id]; if (entity !== oldentity) { - if (entity.type === 'way') { + if (entity && entity.type === 'way') { result = oldentity ? result .concat(_.difference(entity.nodes, oldentity.nodes))