X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/37df03a0432c0fcbc1c1b91af741a5cc135bea34..4ef3012417f55193612267db95cde22153eb449f:/app/models/relation.rb?ds=sidebyside diff --git a/app/models/relation.rb b/app/models/relation.rb index 28fa326ba..76cd86729 100644 --- a/app/models/relation.rb +++ b/app/models/relation.rb @@ -60,6 +60,8 @@ class Relation < ActiveRecord::Base relation.visible = true pt.find('tag').each do |tag| + raise OSM::APIBadXMLError.new("relation", pt, "tag is missing key") if tag['k'].nil? + raise OSM::APIBadXMLError.new("relation", pt, "tag is missing value") if tag['v'].nil? relation.add_tag_keyval(tag['k'], tag['v']) end