From 46aa04dcb40c399941433d79c0968f6b9325ff5f Mon Sep 17 00:00:00 2001 From: hjk <qtc-committer@nokia.com> Date: Wed, 1 Sep 2010 18:55:44 +0200 Subject: [PATCH] debugger: robustness --- src/plugins/debugger/watchutils.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/plugins/debugger/watchutils.cpp b/src/plugins/debugger/watchutils.cpp index 4f592b8e935..48271203192 100644 --- a/src/plugins/debugger/watchutils.cpp +++ b/src/plugins/debugger/watchutils.cpp @@ -542,6 +542,8 @@ QString extractTypeFromPTypeOutput(const QString &str) bool isIntType(const QByteArray &type) { + if (type.isEmpty()) + return false; switch (type.at(0)) { case 'b': return type == "bool"; -- GitLab