From: Art Cancro Date: Wed, 27 Sep 2023 03:59:43 +0000 (-0400) Subject: serv_fulltext: don't try to index a null message X-Git-Tag: v995~1 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=236b58d6cff3dc057ca9b8c09c96d6dc66164b72 serv_fulltext: don't try to index a null message --- diff --git a/citadel/server/modules/fulltext/serv_fulltext.c b/citadel/server/modules/fulltext/serv_fulltext.c index 715c168fd..959e32637 100644 --- a/citadel/server/modules/fulltext/serv_fulltext.c +++ b/citadel/server/modules/fulltext/serv_fulltext.c @@ -100,6 +100,10 @@ void ft_index_message(long msgnum, int op) { array_len(tokens_in_this_message) ); + if (tokens_in_this_message == NULL) { + return; + } + if (array_len(tokens_in_this_message) > 0) { begin_critical_section(S_INDEXER); cdb_begin_transaction();