diff options
Diffstat (limited to 'src/lua')
-rw-r--r-- | src/lua/lua_task.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lua/lua_task.c b/src/lua/lua_task.c index 61aac63f2..21e24fc45 100644 --- a/src/lua/lua_task.c +++ b/src/lua/lua_task.c @@ -4716,7 +4716,7 @@ lua_push_symbol_result(lua_State *L, lua_settable(L, -3); /* Dynamic weight of the symbol */ - if (s->sym->score != 0) { + if (s->sym != NULL && s->sym->score != 0) { lua_pushstring(L, "weight"); lua_pushnumber(L, s->score / s->sym->score); } |