My First Cryptic Corona Runtime Error

Hard to pinpoint what is causing this, and I can’t find a line 214 anywhere. Any ideas on how to debug, and what it could mean?


Runtime error
?:0: attempt to index a nil value
stack traceback:
[C]: ?
?: in function ‘?’
?: in function <?:214>
[import]uid: 4596 topic_id: 8152 reply_id: 308152[/import]

It seems to be caused by this dispatchEvent, inside another event handler. If I comment out the dispatchEvent, the error is not generated.

local test = display.newGroup()
test:dispatchEvent( { name=‘test’, target=test } ) [import]uid: 4596 topic_id: 8152 reply_id: 29036[/import]