X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/7058d836f75c845b7790c7ab6eb2f75844ce0c1c..c02c516047f20cdaa8120968e514420f6c2c6034:/app/models/way.rb 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