From 436c5a768bc60ce1c44049104e4204cd257878a6 Mon Sep 17 00:00:00 2001 From: Pawel Polanski Date: Thu, 8 Sep 2011 15:57:52 +0200 Subject: [PATCH] CODA: Fixed crash when redeploying MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Id154468d6ee4db4eb045fde8a0e858ad5b17428f Reviewed-on: http://codereview.qt-project.org/4469 Reviewed-by: Paweł Polański --- src/plugins/qt4projectmanager/qt-s60/codaruncontrol.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/plugins/qt4projectmanager/qt-s60/codaruncontrol.cpp b/src/plugins/qt4projectmanager/qt-s60/codaruncontrol.cpp index 1f0e24504e1..aa1667f6f45 100644 --- a/src/plugins/qt4projectmanager/qt-s60/codaruncontrol.cpp +++ b/src/plugins/qt4projectmanager/qt-s60/codaruncontrol.cpp @@ -321,6 +321,10 @@ void CodaRunControl::handleAddListener(const CodaCommandResult &result) void CodaRunControl::handleDebugSessionStarted(const CodaCommandResult &result) { Q_UNUSED(result) + if (m_codaDevice.isNull()) { + finishRunControl(); + return; + } m_state = StateDebugSessionStarted; m_codaDevice->sendLoggingAddListenerCommand(CodaCallback(this, &CodaRunControl::handleAddListener)); }