[OSM-dev] [solved] API threw unexpected NoMethodError exception

Martin Schafran martin at ampelmeter.com
Fri Apr 5 19:29:55 UTC 2013


found solution in forum.
http://forum.openstreetmap.org/viewtopic.php?id=7256

its a post from october 2011 and isn't commited yet?




--- a/app/models/relation.rb
+++ b/app/models/relation.rb
@@ -126,7 +126,7 @@ class Relation < ActiveRecord::Base
         end
       else
         # otherwise, manually go to the db to check things
-        if member.member.visible?
+        if member.member and member.member.visible?
           p=1
         end
       end

martin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/dev/attachments/20130405/4e4de7c5/attachment-0001.html>


More information about the dev mailing list