From: Peter Penz Date: Sat, 14 Jan 2012 18:25:49 +0000 (+0100) Subject: Fix possible crash in version-control observer X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/6d621d299d9f36ec580ce9495ea2f7ec5e438661 Fix possible crash in version-control observer BUG: 291505 FIXED-IN: 4.8.0 --- diff --git a/src/views/versioncontrol/versioncontrolobserver.cpp b/src/views/versioncontrol/versioncontrolobserver.cpp index 86049efa3..ac4709069 100644 --- a/src/views/versioncontrol/versioncontrolobserver.cpp +++ b/src/views/versioncontrol/versioncontrolobserver.cpp @@ -195,7 +195,7 @@ void VersionControlObserver::slotThreadFinished() UpdateItemStatesThread* thread = m_updateItemStatesThread; m_updateItemStatesThread = 0; // The thread deletes itself automatically (see updateItemStates()) - if (!m_plugin) { + if (!m_plugin || !thread) { return; }