Thread:Extension talk:Scribunto/attempt to index field 'text' (a nil value) in luasandbox/reply (9)

is OK and then z = nil. give this error because a nil object can contain nothing. To continue without error you must test the table nil_or_not : This code do the same