ruby-changes:11810
From: kou <ko1@a...>
Date: Sat, 16 May 2009 19:51:43 +0900 (JST)
Subject: [ruby-changes:11810] Ruby:r23465 (ruby_1_8): merge r23454.
kou 2009-05-16 19:51:11 +0900 (Sat, 16 May 2009) New Revision: 23465 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=23465 Log: merge r23454. * lib/rss/parser.rb: add nil check. Modified files: branches/ruby_1_8/ChangeLog branches/ruby_1_8/lib/rss/parser.rb Index: ruby_1_8/ChangeLog =================================================================== --- ruby_1_8/ChangeLog (revision 23464) +++ ruby_1_8/ChangeLog (revision 23465) @@ -1,3 +1,7 @@ +Sat May 16 19:50:34 2009 Kouhei Sutou <kou@c...> + + * lib/rss/parser.rb: add nil check. + Sat May 16 19:48:29 2009 Kouhei Sutou <kou@c...> * lib/rss/parser.rb, test/test_parser_1.0.rb: fix foaf:Image Index: ruby_1_8/lib/rss/parser.rb =================================================================== --- ruby_1_8/lib/rss/parser.rb (revision 23464) +++ ruby_1_8/lib/rss/parser.rb (revision 23465) @@ -446,7 +446,7 @@ 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) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/