diff --git a/src/plugins/help/helpmanager.cpp b/src/plugins/help/helpmanager.cpp index 5f7943b3428..3391d94740a 100644 --- a/src/plugins/help/helpmanager.cpp +++ b/src/plugins/help/helpmanager.cpp @@ -226,12 +226,16 @@ QSet HelpManager::userDocumentationPaths() QMap HelpManager::linksForKeyword(const QString &key) { QTC_ASSERT(!d->m_needsSetup, return {}); + if (key.isEmpty()) + return {}; return d->m_helpEngine->linksForKeyword(key); } QMap HelpManager::linksForIdentifier(const QString &id) { QTC_ASSERT(!d->m_needsSetup, return {}); + if (id.isEmpty()) + return {}; return d->m_helpEngine->linksForIdentifier(id); }