summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEdwin Mons <edwin.mons@isode.com>2016-09-22 10:09:49 (GMT)
committerKevin Smith <kevin.smith@isode.com>2016-10-19 19:11:45 (GMT)
commit08a340dbfc9208d1c0e6d574fed244a98e104f01 (patch)
tree936263f06740ee377928c18abdc4ee0a156bcf44 /Swiften/Examples/NetworkTool/SConscript
parentbcd3660a3527327117b46e104d16204a64fe0b9f (diff)
downloadswift-08a340dbfc9208d1c0e6d574fed244a98e104f01.zip
swift-08a340dbfc9208d1c0e6d574fed244a98e104f01.tar.bz2
Always add a fields table member in FormConvertor
The fields member of the forms generated by FormConvertor is used for lookups in the __index metafunction. If a form is parsed with no fields (and possibly no items), there wouldn't be a member 'fields', causing another __index lookup, triggering infinite recursion. There will now always be a fields array, which may be empty. Sluift/Tests/FormTest.lua has been updated to test against an empty form. Test-Information: Updated FormTest.lua works without issues. Change-Id: Idee98f23bf42e1213ca3d03707f908ed5317dad6
Diffstat (limited to 'Swiften/Examples/NetworkTool/SConscript')
0 files changed, 0 insertions, 0 deletions