-
Committer:
Stefan Brüns
-
Date:
2018-12-03 18:47:07 UTC
-
Revision ID:
git-v1:4fa98ca84fb3c88d5a22c5ed44524100923761b6
Avoid potential nullptr access for Document, use reference instead
Summary:
Using a TermGenerator without backing document is pointless and can
even crash when the document has been initialized with a nullptr.
Test Plan: ctest
Reviewers: #baloo, #frameworks, astippich, ngraham
Reviewed By: astippich
Subscribers: kde-frameworks-devel
Tags: #frameworks, #baloo
Differential Revision: https://phabricator.kde.org/D17315