Test for empty term before dereferencing utf-8 iterator
--HG-- branch : WINDOWSPORT
This commit is contained in:
parent
82295328cc
commit
7c3afbafa7
@ -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.
|
||||
continue;
|
||||
if (TextSplit::isCJK(*utfit)) {
|
||||
// LOGDEB(("stemskipped: Skipping CJK\n"));
|
||||
continue;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user