Commit 7425162f authored by Jean-Francois Dockes's avatar Jean-Francois Dockes
Browse files

Test for empty term before dereferencing utf-8 iterator

branch : RECOLL_1_21_MAINT
parent 30970df3
......@@ -97,6 +97,8 @@ bool createExpansionDbs(Xapian::WritableDatabase& wdb,
// Detect and skip CJK terms.
Utf8Iter utfit(*it);
if (utfit.eof()) // Empty term?? Seems to happen.
if (TextSplit::isCJK(*utfit)) {
// LOGDEB(("stemskipped: Skipping CJK\n"));
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment