# HG changeset patch # User jbe # Date 1451864927 -3600 # Node ID ad437022be901b5627b4dfb23cc98f6cdb87d3be # Parent 7b183a70a37dcc4149f11b0151a9f5e0f968e1fe Quick fix to avoid problems on document creation diff -r 7b183a70a37d -r ad437022be90 libraries/mondelefant/mondelefant_native.c --- a/libraries/mondelefant/mondelefant_native.c Mon Jan 04 00:42:28 2016 +0100 +++ b/libraries/mondelefant/mondelefant_native.c Mon Jan 04 00:48:47 2016 +0100 @@ -1755,6 +1755,7 @@ lua_getfield(L, 4, "document_column"); // 6 if (lua_toboolean(L, 6)) { lua_getfield(L, 1, "_column_info"); // 7 + if (!lua_isnil(L, 7)) { // TODO: quick fix to avoid problems on document creation lua_pushvalue(L, 2); // 8 lua_gettable(L, 7); // 8 if (!lua_toboolean(L, 8)) { @@ -1768,6 +1769,7 @@ lua_settable(L, 6); return 0; } + } // TODO: quick fix to avoid problems on document creation } lua_settop(L, 5); // store value in data field info: