summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhjk <hjk@theqtcompany.com>2016-04-28 20:52:31 +0200
committerhjk <hjk@theqtcompany.com>2016-04-29 05:30:46 +0000
commita246e432203b49d164c865883e530378001c8135 (patch)
tree0a54db56b293e74b5c92eba6741335f1dad24cfa /src
parent384d66613de98ef0de9c9c0a9ba4d3fb9be2316f (diff)
downloadqt-creator-a246e432203b49d164c865883e530378001c8135.tar.gz
Debugger: Make safety check safer
This amends change ad55631c. Change-Id: If0679ee2f3559fd3d1b2ef57e7456a159dd25b3b Task-number: QTCREATORBUG-16180 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/plugins/debugger/debuggerengine.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/debugger/debuggerengine.cpp b/src/plugins/debugger/debuggerengine.cpp
index 732e1cb0d9..5d97f30045 100644
--- a/src/plugins/debugger/debuggerengine.cpp
+++ b/src/plugins/debugger/debuggerengine.cpp
@@ -2022,7 +2022,8 @@ void DebuggerEngine::updateItem(const QByteArray &iname)
showMessage(QString::fromLatin1("IGNORING REPEATED REQUEST TO EXPAND " + iname));
WatchHandler *handler = watchHandler();
WatchItem *item = handler->findItem(iname);
- if (!item->hasChildren()) {
+ QTC_CHECK(item);
+ if (item && !item->hasChildren()) {
handler->notifyUpdateStarted({iname});
item->setValue(decodeData({}, "notaccessible"));
item->setHasChildren(false);