From: Frederik Ramm Date: Sun, 9 Nov 2008 12:06:05 +0000 (+0000) Subject: mini fix X-Git-Tag: live~7601^2~180 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/5ff5bf60e56b2762ad08fa947af8e458e5974b6c?hp=b64fc35140674d868f9e66a748b663877d3fd285 mini fix --- diff --git a/app/models/way.rb b/app/models/way.rb index c9e695b32..be6531def 100644 --- a/app/models/way.rb +++ b/app/models/way.rb @@ -113,7 +113,7 @@ class Way < ActiveRecord::Base end else # otherwise, manually go to the db to check things - if nd.node.visible? and nd.node.visible? + if nd.node and nd.node.visible? ordered_nodes[nd.sequence_id] = nd.node_id.to_s end end