diff --git a/src/plugins/debugger/watchhandler.cpp b/src/plugins/debugger/watchhandler.cpp
index 3b7e54c4c27254c0f280f65cb90fe7e407e496cb..3ef4df63e3e833d2a5101c9cef3cbfa5a44b1495 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;
 }