Handle a range with a nil length

git-svn-id: file:///home/svn/framework3/trunk@13548 4d416f70-5f16-0410-b530-b9f4589650da
unstable
HD Moore 2011-08-12 19:09:05 +00:00
parent bfc59e4c62
commit dc9c395a7f
1 changed files with 13 additions and 13 deletions

View File

@ -1976,7 +1976,7 @@ class Db
# Chunking has roughly the same perfomance for small batches, so
# don't worry about it too much.
host_ranges.each do |range|
if (range.nil?)
if range.nil? or range.length.nil?
chunk = nil
end_of_range = true
else