content null check in full text search, #3672

This commit is contained in:
zadam 2023-03-06 23:23:32 +01:00
parent 62c2547557
commit 1e551581f8

View File

@ -69,6 +69,10 @@ class NoteContentFulltextExp extends Expression {
}
}
if (!content || typeof content !== 'string') {
return;
}
content = this.preprocessContent(content, type, mime);
if (this.tokens.length === 1) {
@ -98,6 +102,7 @@ class NoteContentFulltextExp extends Expression {
resultNoteSet.add(becca.notes[noteId]);
}
}
return content;
}