From 70705b84f7dea437541064ded85307585f899e14 Mon Sep 17 00:00:00 2001 From: WorldofBay <16127164+WorldofBay@users.noreply.github.com> Date: Thu, 10 Jan 2019 09:03:43 +0100 Subject: [PATCH] add nil check to fileconfig.hasFileSetting (gmake) --- src/base/fileconfig.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/base/fileconfig.lua b/src/base/fileconfig.lua index b9826f3f..37e232b5 100644 --- a/src/base/fileconfig.lua +++ b/src/base/fileconfig.lua @@ -186,6 +186,9 @@ -- function fileconfig.hasFileSettings(fcfg) + if not fcfg then + return false + end for key, field in pairs(p.fields) do if field.scopes[1] == "config" then local value = fcfg[field.name]