Handle a range with a nil length
git-svn-id: file:///home/svn/framework3/trunk@13548 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
bfc59e4c62
commit
dc9c395a7f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue