aboutsummaryrefslogtreecommitdiffstats
path: root/teal-src
diff options
context:
space:
mode:
Diffstat (limited to 'teal-src')
-rw-r--r--teal-src/util/datamapper.tl1
1 files changed, 1 insertions, 0 deletions
diff --git a/teal-src/util/datamapper.tl b/teal-src/util/datamapper.tl
index 0d757800..99431f86 100644
--- a/teal-src/util/datamapper.tl
+++ b/teal-src/util/datamapper.tl
@@ -37,6 +37,7 @@ local function toboolean ( s : string ) : boolean
end
local function totype(t : json_type_name, s : string) : any
+ if not s then return nil end
if t == "string" then
return s;
elseif t == "boolean" then