1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* lib/rss/parser.rb: add nil check.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23454 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
kou 2009-05-16 09:37:28 +00:00
parent 98bbfeae5e
commit a6239ec352
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
Sat May 16 18:38:32 2009 Kouhei Sutou <kou@cozmixng.org>
* lib/rss/parser.rb: add nil check.
Sat May 16 18:36:01 2009 Kouhei Sutou <kou@cozmixng.org>
* test/rss/test_maker_atom_feed.rb: suppress warnings.

View file

@ -446,7 +446,7 @@ module RSS
def start_get_text_element(tag_name, prefix, ns, required_uri)
pr = Proc.new do |text, tags|
setter = self.class.setter(required_uri, tag_name)
if @last_element.respond_to?(setter)
if setter and @last_element.respond_to?(setter)
if @do_validate
getter = self.class.getter(required_uri, tag_name)
if @last_element.__send__(getter)