Test for empty term before dereferencing utf-8 iterator
This commit is contained in:
parent
468c9fe575
commit
cdcbb01eab
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue