Fix logic error when dumping non-function objects
This commit is contained in:
parent
aa4cd9daf8
commit
5be42470c3
|
@ -1285,7 +1285,7 @@ function Item:dump(verbose)
|
|||
print 'description:'
|
||||
print(self.description)
|
||||
end
|
||||
if #self.params > 0 then
|
||||
if self.params and #self.params > 0 then
|
||||
print 'parameters:'
|
||||
for _,p in ipairs(self.params) do
|
||||
print('',p,self.params.map[p])
|
||||
|
|
Loading…
Reference in New Issue