From ae2c6a55c28d7da883772c4aa1db0573de60aad3 Mon Sep 17 00:00:00 2001 From: Thorsten Behrens Date: Thu, 16 Jan 2020 12:05:59 +0100 Subject: [PATCH] Fix crash on invalid engine --- part/pageviewannotator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/part/pageviewannotator.cpp b/part/pageviewannotator.cpp index 968912c82..090d5c55f 100644 --- a/part/pageviewannotator.cpp +++ b/part/pageviewannotator.cpp @@ -867,7 +867,7 @@ QRect PageViewAnnotator::performRouteMouseOrTabletEvent(const AnnotatorEngine::E // creationCompleted is intended to be set by event(), handled subsequently by end(), and cleared within end(). // If it's set here, we recursed for some reason (e.g., stacked event loop). // Just bail out, all we want to do is already on stack. - if (m_engine->creationCompleted()) { + if (m_engine && m_engine->creationCompleted()) { return QRect(); }