* lib/date.rb (Date::self.complete_hash): need to check if g is
nil before dereference. [ruby-core:09116] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11146 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
7df8b0501a
commit
d947750eb0
@ -1,3 +1,8 @@
|
|||||||
|
Fri Oct 13 01:48:42 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
|
* lib/date.rb (Date::self.complete_hash): need to check if g is
|
||||||
|
nil before dereference. [ruby-core:09116]
|
||||||
|
|
||||||
Fri Oct 13 01:05:58 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
|
Fri Oct 13 01:05:58 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
* string.c (rb_str_partition): RDoc update. a patch from
|
* string.c (rb_str_partition): RDoc update. a patch from
|
||||||
|
@ -797,7 +797,7 @@ class Date
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if g[0] == :time
|
if g && g[0] == :time
|
||||||
if self <= DateTime
|
if self <= DateTime
|
||||||
d ||= Date.today
|
d ||= Date.today
|
||||||
elem[:jd] ||= d.jd
|
elem[:jd] ||= d.jd
|
||||||
|
Loading…
x
Reference in New Issue
Block a user