check for nil

This commit is contained in:
Jim Menard 2009-01-15 09:35:44 -05:00
parent 711cd4ea55
commit b8e3a98755
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@ module XGen
def next_object
refill_via_get_more if num_remaining == 0
o = @cache.shift
raise o['$err'] if o['$err']
raise o['$err'] if o && o['$err']
o
end