Passing nil to ll.Dialog where a table is expected causes ll.Dialog to hang
complete
SungAli Resident
--ll.Dialog(ll.GetOwner(), "Empty Table", {}, 1) --This works, presents the dialog and prints done.
ll.Dialog(ll.GetOwner(), "Nil", nil, 1) --This hangs, no dialog, no done. Should either trigger an error or treat nil as an empty table.
print("done")
You can thank a puzzled SLua class student, Marie (MarieOmani), for triggering this error.
Log In
H
Harold Linden
marked this post as
complete
SungAli Resident
Harold, the above test script now returns an error message,:
invalid argument #3 to 'Dialog' (expected a table)
So far as I am concerned that means this issue is now fixed.
H
Harold Linden
Does this still reproduce on the new SLua sims? If so, could you attach a full repro script as a file? Canny likes to eat formatting.
SungAli Resident
The _() bug I added to this report yesterday appears to have been a transient phenomenon or has already been fixed. The test script now reports an error as expected.
SuzannaLinn Resident
We are opening a related canny:
We go on investigating on this one.
SungAli Resident
I'm not sure if this is a separate bug or a manifistation of the same thing, but this too results in a hang:
print( `
RTE>> _ = {_}
` )_()
print( "RTE<<" )
output:
RTE>> _ = nil