Don't crash without hint context in HintManager._start_cb

This commit is contained in:
Florian Bruhin 2017-02-08 22:49:25 +01:00
parent b5ab3adc8c
commit 859974fa99

View File

@ -572,6 +572,10 @@ class HintManager(QObject):
def _start_cb(self, elems):
"""Initialize the elements and labels based on the context set."""
if self._context is None:
log.hints.debug("In _start_cb without context!")
return
if elems is None:
message.error("There was an error while getting hint elements")
return