From: Vsevolod Stakhov Date: Wed, 18 Mar 2020 10:42:23 +0000 (+0000) Subject: [Minor] Fix learning with symbols that have no static scores X-Git-Tag: 2.5~48 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6581dc09e6ca1e8114430b9c921012c885959384;p=thirdparty%2Frspamd.git [Minor] Fix learning with symbols that have no static scores --- diff --git a/src/lua/lua_task.c b/src/lua/lua_task.c index 1fbf988a9b..4a60401451 100644 --- a/src/lua/lua_task.c +++ b/src/lua/lua_task.c @@ -4791,7 +4791,7 @@ lua_task_process_ann_tokens (lua_State *L) gdouble norm_score; - if (!isnan (sres->sym->score)) { + if (sres->sym && !isnan (sres->sym->score)) { if (sres->sym->score == 0) { if (sres->score == 0) {