From c425122afbc6349db3a55216703045d944e5b786 Mon Sep 17 00:00:00 2001 From: hjk <qtc-committer@nokia.com> Date: Thu, 26 Nov 2009 14:58:07 +0100 Subject: [PATCH] debugger: fix potential crash after f2392ffb --- src/plugins/debugger/watchhandler.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/plugins/debugger/watchhandler.cpp b/src/plugins/debugger/watchhandler.cpp index 3b7e54c4c27..3ef4df63e3e 100644 --- a/src/plugins/debugger/watchhandler.cpp +++ b/src/plugins/debugger/watchhandler.cpp @@ -607,8 +607,9 @@ QString WatchModel::niceType(const QString &typeIn) const QString type = niceTypeHelper(typeIn); if (theDebuggerBoolSetting(ShowStdNamespace)) type = type.remove("std::"); - if (theDebuggerBoolSetting(ShowQtNamespace)) - type = type.remove(m_handler->m_manager->currentEngine()->qtNamespace()); + IDebuggerEngine *engine = m_handler->m_manager->currentEngine(); + if (engine && theDebuggerBoolSetting(ShowQtNamespace)) + type = type.remove(engine->qtNamespace()); return type; } -- GitLab