Using a TermGenerator without backing document is pointless and can
even crash when the document has been initialized with a nullptr.
Details
Details
- Reviewers
astippich ngraham - Group Reviewers
Baloo Frameworks - Commits
- R293:4fa98ca84fb3: Avoid potential nullptr access for Document, use reference instead
ctest
Diff Detail
Diff Detail
- Repository
- R293 Baloo
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Comment Actions
Hmm no, still complains in termgeneratortest about
error: while searching for:
QString str = QString::fromLatin1("1 5 10 -3 -12, 5.6, -13.4 -7e3"); Document doc; TermGenerator termGen(&doc); termGen.indexText(str); QList<QByteArray> words = allWords(doc);