summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/libmime/message.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libmime/message.c b/src/libmime/message.c
index 1d61b9807..9322bbd33 100644
--- a/src/libmime/message.c
+++ b/src/libmime/message.c
@@ -288,7 +288,7 @@ rspamd_extract_words (struct rspamd_task *task,
}
#endif
- if (part->normalized_words->len) {
+ if (part->normalized_words && part->normalized_words->len) {
gdouble *avg_len_p, *short_len_p;
avg_len_p = rspamd_mempool_get_variable (task->task_pool,