webmcp

changeset 552:7e874b5227b6

Bugfix in array support: info.type may be nil
author jbe
date Mon Dec 09 16:09:14 2019 +0100 (11 months ago)
parents a0f1a4e76556
children a0c49529ab8b
files libraries/mondelefant/mondelefant_atom_connector.lua
line diff
     1.1 --- a/libraries/mondelefant/mondelefant_atom_connector.lua	Mon Dec 09 15:54:41 2019 +0100
     1.2 +++ b/libraries/mondelefant/mondelefant_atom_connector.lua	Mon Dec 09 16:09:14 2019 +0100
     1.3 @@ -228,7 +228,10 @@
     1.4    if value == nil then
     1.5      return nil
     1.6    else
     1.7 -    local array_type = string.match(info.type, "^(.*)_array$")
     1.8 +    local array_type = nil
     1.9 +    if info.type then
    1.10 +      array_type = string.match(info.type, "^(.*)_array$")
    1.11 +    end
    1.12      if array_type then
    1.13        local result = {}
    1.14        local count = 0

Impressum / About Us