When search string is empty, query.d->m_term.value() will be invalid, which is actually a valid case. Reproducible: Always Steps to Reproduce: 1. build baloo with debug 2. run baloosearch "" 3. assertion happens. ASSERT: "term.value().isValid()" in file src/lib/searchstore.cpp, line 178 Actual Results: assertion happens Expected Results: no assertion happens
Confirmed. Good catch.
* commit 9b17d81b5152d28eba80b4b67fbda2ca5da41054 | Author: Vishesh Handa <me@vhanda.in> | Date: Tue Dec 15 00:09:16 2015 +0100 | | SearchStore: Gracefully handle empty term values | | This happens on calling the baloosearch executable with an empty string | or a few spaces. | | BUG: 356176 | FIXED-IN: 5.18