lib/nicoquery/object_mapper/getthumbinfo.rb in nicoquery-0.1.8.4 vs lib/nicoquery/object_mapper/getthumbinfo.rb in nicoquery-0.1.8.5
- old
+ new
@@ -49,9 +49,10 @@
return nil if @hash == nil
@hash['title']
end
def description
+ return nil if @hash.nil? || @hash['description'].nil?
@_description ||= Description.new @hash['description']
end
def thumbnail_url
return nil if @hash == nil
\ No newline at end of file