From e620e76baf2d3821a91602854d5d47aad3fe38bf Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 9 Dec 2019 12:32:58 +0000 Subject: [Minor] Allow nil options when adding symbols --- src/lua/lua_task.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/lua') diff --git a/src/lua/lua_task.c b/src/lua/lua_task.c index 7072ebe35..cf57ebf13 100644 --- a/src/lua/lua_task.c +++ b/src/lua/lua_task.c @@ -1896,6 +1896,12 @@ lua_task_insert_result (lua_State * L) lua_pop (L, 1); } + else if (ltype == LUA_TNIL) { + /* We have received a NULL option, it is not good but not a fatal error */ + msg_info_task ("nil option when adding symbol %s at pos %d", + s->name, i); + continue; + } else { const gchar *tname = lua_typename (L, ltype); -- cgit v1.2.3