]> git.openstreetmap.org Git - rails.git/commitdiff
mini fix
authorFrederik Ramm <frederik@remote.org>
Sun, 9 Nov 2008 12:06:05 +0000 (12:06 +0000)
committerFrederik Ramm <frederik@remote.org>
Sun, 9 Nov 2008 12:06:05 +0000 (12:06 +0000)
app/models/way.rb

index c9e695b32e0193855b5e2b0c0cdf5acc59cd08a8..be6531def4bdeac9b71debd94105282e4379fc93 100644 (file)
@@ -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